[EMAIL PROTECTED] wrote:
On Fri, May 30, 2008 at 12:42:48PM -0700, N?stor wrote:
When running the rsync command to copy files from one host to another how do
I pass teh password?
This is my command:
rsync -avz host1:/home/www/ /home/www
It always as for the password and I want to set it up to run as a cron job.
You really want to learn about ssh-agent. Then perhaps set up a password less
RSA for root.
Don't do it. ssh-agent has nothing to do with cron jobs. If it's
"passphraseless" then if the box with the private key is hacked, who
ever gets the private key has full privileges where ever that key is.
So, create a user for the job, if it has to be root, limit it via the
authorized_keys file, you can limit the commands run, etc. I use
passphraseless keys for rsnapshot.
Mark
--
[email protected]
http://www.kernel-panic.org/cgi-bin/mailman/listinfo/kplug-list