On Sun, 2004-01-04 at 20:07, Turnpike Man wrote: > Rsync Notes, manual and rsync server setup > ------------------------------------------ > > 1. Manual rsync: > (from source (foo) machine to destination (foo2) machine) > rsync -avze ssh /source/path/ foo2:/destination/path/ > > 2. Rsync server: > as root on the source machine (foo), edit /etc/xinetd.d/rsync > disable = no > > 3. service xinetd restart > > 4. edit /etc/rsyncd.conf (may need to create) > > [mydata] > path = /source/path/ > comment = my data > read only = true > max connections = 5 > gid = nobody > > 5. goto destination machine (foo2) > connect and test with: rsync rsync://foo/mydata/ > should see a listing of the source top level dir > > 6. command to do the mirror: > rsync -avz rsync://foo/mydata/ /destination/path/ > > 7. create the cron job > NOTE! > Make sure you turn off the cron job if you are going > to empty your source data! > > For the cron job, if you plan on maintaining a full mirror, you will > need to add --delete > rsync -avz --delete rsync://foo/mydata/ /destination/path/ >
Good Notes. You might want to add a section about limiting access to rsync by editing your hosts.allow and hosts.deny files (see the man pages for detailed info on their setup). Unless these servers are completely hidden behind a firewall - and even if they are - you probably want to limit access to the rsync daemon on your server. -- TriLUG mailing list : http://www.trilug.org/mailman/listinfo/trilug TriLUG Organizational FAQ : http://trilug.org/faq/ TriLUG Member Services FAQ : http://members.trilug.org/services_faq/ TriLUG PGP Keyring : http://trilug.org/~chrish/trilug.asc
