RSync backup issue
Ben Eisenbraun
bene-Gk2boCrsRs1AfugRpC6u6w at public.gmane.org
Thu Nov 12 15:50:00 EST 2009
Chris,
> *#rsync -e ssh --password-file=/etc/.rsyncpassword -varuzP > /backup/backup.log administrator-Q0ErXNX1RuYmaKRe3I/nfg at public.gmane.org:/backup/*
> Any thoughts about :
> B) Have the Rsync process know the password for the Administrator account
> so I'm not always prompted?
I think you're getting tripped up because rsync supports several different
transfer methods. When you specify "directory hostname:/directory" style
connections, it will use a remote shell.
If you specify "rsync://hostname directory" style connections, it uses the
rsync protocol and you need a listening rsync daemon on the remote end to
transfer the files. The --password-file option is an option for
connections to an rsync daemon.
In your rsync options -varuzP, -P implies -v and -a implies -r, so you
can shorten it to -auzP.
Also SSH has been the default remote shell in rsync for six or seven years,
so you can drop the '-e ssh' bit as well. Just follow Dan Ritter's advice on
setting up the SSH keys, and you should be all set.
-ben
--
work is the curse of the drinking class. <oscar wilde>
More information about the Discuss
mailing list