Afficher un message
Vieux 02/10/2006, 23h14   #2
Todd H.
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: remote backup using sftp

"stroller" <smcbutler@hotmail.com> writes:

> hi, i have public/private keys configured for my servers and would like
> to take a backup and sftp to a remote machine i maintain in a colo
> facility (also configured with public/private keys). can someone
> recommend a way to do this sftp of the backedup data to the remote
> machine, using a script? essentially my question is how do do the sftp
> transfer without manually having to type the passphrase.


rsync using ssh as transport is one nice option if you have hte
benefit of an rsync server on the far end.

Example:
client$ rsync -avz -e ssh /home/me/ remote.colohost.blah:/home/me123/mybackup

Or you can do the usual scp thing though it's not as bandwidth
friendly.

In ssh parlance, you wish to use public key authentication with a
private key that has no pass phrase.

For more on that see:
http://www.snailbook.com/faq/no-passphrase.auto.html


--
Todd H.
http://www.toddh.net/
  Réponse avec citation
 
Page generated in 0,05621 seconds with 9 queries