http://www.howtoforge.com/mirroring_with_rsync
Below is an example . it says, you issue this command to a remote machine ( 192.168.0.22) . key is loacated at root/rsync/mirror-rsync-key on your local machne. you logging to that machine as user name someuser. this account should exist on remote machine.
/usr/bin/rsync -azq -e "ssh -i /root/rsync/mirror-rsync-key" someuser@192.168.0.22/var/spool/mail/ /var/spool/mail/
for more
see this
http://www.howtoforge.com/mirroring_with_rsync
On 1/6/07, Todd Cary <todd@aristesoftware.com > wrote:
About a year and a half ago, someone answered a request on how to set up rsync so that the encryption was automatically setup (wish I knew more about the technical aspects). It has been in use for the time since then and it has been great. Now I have to replace the destination computer and setting up, what I call the encryption part, is the part I have forgotten how to do. This is the command line:
/usr/bin/rsync -av -e ssh /home/ 192.168.0.22:/home/
Is there anyone who can translate what I am trying to do?
Todd
-- Ariste Software 2200 D Street Ext Petaluma, CA 94952 (707) 773-4523
CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos