[Linux-disciples] Rsyncing /etc
Stephen R Laniel
steve at laniels.org
Wed Jul 7 23:34:56 EDT 2004
I want to copy /etc over to a backup machine using rsync and
ssh. ~/.ssh/authorized_keys is all set up on the other end,
so user slaniel logs in without having to type a password.
But I was testing out the rsync command on the command line
before I commit it to a cron job, and I 'sudo'ed it so that
every file in /etc would copy correctly. Still it asked me
for a password. I figured out why: ssh is running as root,
so it's looking for the files /root/.ssh/id_{dsa,rsa}.pub.
What's the best way around this? Should I just copy
slaniel's ssh public keys to /root/.ssh? Somehow that seems
impure and bad.
The command line, for reference's sake, is
sudo rsync --rsh='ssh -v ' --archive --progress --exclude=mp3s /home slaniel at blackthought:/mnt/newdisk/jefftweedy-backup
with that 'ssh -v' bit thrown in for debugging purposes.
I appreciate any help.
Steve
--
``I'm not a pacifist in any stretch of the imagination.
As a matter of fact, I like bombing countries.
KING: You do?
STEWART: Well, just purely for the knowledge of geography.
It's just fascinating to learn about these countries.''
-http://shorl.com/hipyjymuvobo
More information about the Linux-disciples
mailing list