rsync backup

Norman Zhang nzhang at
Thu Jan 15 19:46:58 GMT 2004

Norman Zhang wrote:
> John Davis wrote:
>  >> I want to mirror a samba server (smb0) to a identical server (smb1)
>  >> in my internal network. So far I can managed to do this from client
>  >> (smb1),
>  >>
>  >> rsync -e ssh -auzpg /home
>  >> rsync -e ssh -auzpg /srv
>  >>
>  >> I would like to automate this task without entering root password.
>  >> But I'm little confused. Should I setup rsyncd.conf from the
>  >> server and setuid/setgid for access? Then initiate connection from
>  >> client with above commands using CRON?
>  >
>  > That's one way. You could also do it with an expect script (use
>  > autoexpect), or you can tell your SSH server to authenticate with an
>  > SSH key. If you do it that way, you won't be prompted for a password.
>  > It's what I do for all of my remote servers.
> Sorry. Do you mean the way I have would still prompt for password? Would 
> you mind sharing your script?

I've setup SSH for auto login. It seems I can just do

rsync -e ssh -aupg /home fine

Do I still need /etc/rsyncd.conf on the server?


More information about the rsync mailing list