Configuring rsync to synchronize files nas

Under the previous practice of windows is to install a cygwin package, now do not need, and direct installation of a linux linux command subsystems on the line.

start cmd /k "c:\cygwin64\bin\rsync -uav --no-p --chmod=ugo=rwX  --progress --password-file=/cygdrive/d/tools/sync.txt  /cygdrive/d/照片 [email protected]::my_rsync_bk

"

After installation in windows linux rsync command subsystem may be used directly, windows are mounted to the disk / mnt, such as mounted to the disc d / mnt / d

rsync -uav --no-p --chmod=ugo=rwX  --progress --password-file=/home/yourname/sync.txt  $1 rsync@192.168.2.176::my_rsync_bk

Under linux records password file permissions changed to 600

chrome 600 sync.txt

Password wrote sync.txt, there is no check, written directly into the herd.

These are the configuration of the client, the server does not write

Guess you like

Origin www.cnblogs.com/gelandesprung/p/11612950.html