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/

__________________________________
Do you Yahoo!?
Protect your identity with Yahoo! Mail AddressGuard
http://antispam.yahoo.com/whatsnewfree
-- 
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

Reply via email to