[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Best way to duplicate HDs



> On Mon, Jan 07, 2002 at 03:03:12PM +0800, Patrick Hsieh wrote:
> > >   - obviously this doesn't preclude a bad guy checking out
> > >     backup-server:backups/otherhostname (use ssh keys, and invoke cmd="cd
> > >     backups/hostname; rsync with whatever daemon options" will limit that)
> > Now I know how to use "command=" in ~/.ssh/authorized_keys2.
> > Providing I have backupserver and debianclient.
> > In ~/.ssh/authorized_keys2 of backupserver "command=" section, what
> > command should I put to automate the backup procedure between
> > backupserver and debianclient? I tried:
> > command="cd /backup; /usr/bin/rsync -av debianclient:/dirtobackup ./"
> 
> run the rsync without a command= statement, and do a ps awux | grep rsync
> on the target (like I already suggested).  That command or something close
> to it will be the basis for your command=""
> 
> > But when I ssh from debianclient to backupserver, it gives me a password
> > prompt,, so I enter the password, then rsync begins.
> 
> and ?
> 
Thanks for your patience.
My question is, since I expect automated rsync backup, I hope to avoid
password prompt in the whole procedure. In this case, I still have to
enter password, idea?

-- 
Patrick Hsieh <pahud@pahud.net>

GPG public key http://pahud.net/pubkeys/pahudatpahud.gpg



Reply to: