Twenty-eight, rsync synchronization tool depth

1. added to the service since the launch of rsync file rc.local

   echo "/usr/bin/rsync --daemon" >>/etc/rc.local

  tail -l rc.local

2. synchronize files to exclude (exclude)

A single file: rsync -avz --exclude = a / dangjingwei [email protected] :: oldboy --password-file = / etc / rsync.password

Troubleshooting: When checking the error log on the server, like a long time, because of the deleted file server, so the establishment of a new module when the change will have no cause rsync server refused to change the content in the module, modify the service end successfully owner sends an OK from the client

多个文件:  rsync -avz --exclude-from=/dangjingwei/data1/paichu.txt /dangjingwei    [email protected]::oldboy --password-file=/etc/rsync.password

 

 

Guess you like

Origin www.cnblogs.com/dangjingwei/p/11027868.html