[K12OSN] automating rsync
Brian Chivers
brian at portsmouth-college.ac.uk
Thu Nov 24 09:54:59 UTC 2005
Doug Simpson wrote:
> Is it possible to automate rsync so you can transfer files between
> servers automatically? and have it auto-supply a password for the remote
> end?
>
> Thanks
>
> _______________________________________________
> K12OSN mailing list
> K12OSN at redhat.com
> https://www.redhat.com/mailman/listinfo/k12osn
> For more info see <http://www.k12os.org>
>
I do this for backing up our various servers. I have one machine that is running Rsync as a daemon
and the linux box's PUSH there updates to it. I then use autofs to mount shares on various windows
machine and rsync these to the server, sort of pulling. Seems to work fine.
To do the passwordless bit have a look at this page as a start
http://www.hantslug.org.uk/cgi-bin/wiki.pl?LinuxHints/SSHwithoutPasswords
But this page was what I used
http://dsg.port.ac.uk/~rjb/misc/howto/ssh/index.php
Basically this is what you have to do
generate sshkeys on the machine you wish to rsync FROM
ssh-keygen -t dsa -b 4096
(just hit enter for all the questions)
chmod 0644 ~/.ssh/id_dsa.pub
copy ~/.ssh/id_dsa.pub to rsync server into /root/.ssh
cat id_dsa.pub >> authorized_keys
Brian
---------------------------------------------------------------
The views expressed here are my own and not necessarily
the views of Portsmouth College
More information about the K12OSN
mailing list