remote backup using sftp

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View

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.


Re: remote backup using sftp

Quoted text here. Click to load it

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

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

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

For more on that see:

Todd H. /

Re: remote backup using sftp (Todd H.) writes:
Quoted text here. Click to load it

Why is that?
%  Randy Yates                  % "My Shangri-la has gone away, fading like
%% Fuquay-Varina, NC            %  the Beatles on 'Hey Jude'"
%%% 919-577-9882                %

Re: remote backup using sftp

Quoted text here. Click to load it

scp copies every file every time, no matter whether it's changed since
the last sync or not.

rsync only updates what's changed.

Todd H. /

Site Timeline