On Thu, Mar 23, 2000 at 01:49:02PM -0500, Jake Johnson wrote:
> I am trying to mirror a few linux boxes with rsync and I would like to run
> it as a cron.  Any suggestions?

/usr/bin/rsync -qa -e ssh /home/user/path remoteuser@remotehost:path

-q  tells rsync to shut up and thus not trigger any mails from cron if
    everything works fine (errors will still be delivered)

-a  This is equivalent to -rlptg. It is a quick way  of
    saying  you  want  recursion  and  want to preserve
    everything.

Since you won't be able to enter any passwords you have to use RSA
authentication (generate a key pair and store the pricate key in
~user/.ssh/identity on your machine and the public key in
~remoteuser/.ssh/authorized_keysi)
If you are not familiar with these things have a look at the ssh and
ssh-keygen man pages or ask me so I can tell you the details.

Hope this helps,
Boris
-- 
I'm sorry about your being disconnected over Christmas, but we needed that
UPS for our tree lights.

+-------------------------------------------------------------------------+
| Mail:      [EMAIL PROTECTED]                                               |
| Home Page: http://www.stud.ee.ethz.ch/~blutz/                           |
+-------------------------------------------------------------------------+


-- 
To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe"
as the Subject.

Reply via email to