[CentOS] rsync
Markus Falb
markus.falb at fasel.at
Fri Sep 4 04:56:00 UTC 2009
Gabriel Rosca wrote:
> Try this ... On your script ...
>
> /usr/bin/rsync -avzh -e "ssh -i /home/user/.ssh/auth-key"
> chloe at remotehost:/var/www/html /backup/html
You are correct about the -i switch.
Another possibility coming to me mind (if the machine the
cronjob is running is not the local machine but remote per ssh): maybe
chloe K is using Authentication forwarding (see the -A -a switches to
ssh). If so, maybe the private key is only existing on the local
machine but not on the machine the cronjob is running.
--
best regards,
markus
More information about the CentOS
mailing list