![]() ![]() It keeps track of changes to files made in a directory that you've set up for synchronization, and periodically copies those files over using rsync or another (configurable) method. Unison is not well maintained any more, and I have not used it myself, but I have heard great things about it. What you seem to be after is a bi-directional sync for those folders, which is something that you can either set up in the cron or start using Unison file synchronization software. However, that will still not set up a continual sync between those folders. To use the share, you would need to change your syntax as follows to use the share: rsync -av /etc/dirtosync/ The rsync syntax you've posted works assuming you've omitted the machine's host name/IP, but does not use the rsync share you've set up. I also tried on the server A the command rsync -avzr /etc/dirtosync/* this two commands the result is the same: the files are synchronized just one time when I launch the command but after if I modify the files in the server A they aren't synchronize to the server Bĭo I have to do something else to keep the file synchronized? ![]() I launched on the machine B the command: rsync -avzr /etc/dirtosync/ On the server A and the server B the owner and the group of the directory is rsync. On the server A, on the file: /etc/default/rsync I put the value RSYNC_ENABLE to true and I started the rsync daemon with the command: /etc/initd/rsync start I also created on the server A the pid file, and the user rsync with the password rsync. On the server A I created a file nf with the content: uid = rsyncĪnd I created on the server A the file /etc/crets with the content: rsync:rsync I want to synchronize a directory on the server A to a server B.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |