rsync -avrtzu /cygdrive/d/CCNA 192.168.2.6::backup
說明:將本機(WinXp)D:\CCNA資料夾內的資料全部上傳到Win2008Server上的backup標籤內。
/cygdrive/c--代表C槽
/cygdrive/d--代表D槽。依此類推
/cygdrive/d--代表D槽。依此類推
*執行的時候發現找不到指令,請到環境變數內Path 將 C:\Program Files (x86)\cwRsync\bin 加入
有關rsync指令說明如下:
-a, --archive mode; equals -rlptgoD (no -H,-A,-X)-v, --verbose increase verbosity
-r, --recursive recurse into directories
-t, --times preserve modification times-z, --compress compress file data during the transfer
-u, --update skip files that are newer on the receiver
No comments:
Post a Comment