1. Download cwrsync server from http://www.itefix.no/i2/node/10650.
2. Install it as service
3. edit the configuration file and manually start-up it
Here is the sample
uid = 0
gid = 0
use chroot = false
strict modes = false
hosts allow = *
log file = rsyncd.log
[test]
path = /cygdrive/d/backup
read only = false
transfer logging = yes
4. in linux , yum install rsync if you don't have it.
5. run the command
rsync -av --delete --progress Window_IP::test /local_path/
To set the file permission with rsync
rsync -av --delete --chmod=a+rw,g+r,o+r remote_IP::remote_directory /local_directory/
沒有留言:
發佈留言