rsync over SSH

# rsync -avnP -e ‘ssh -i /home/user/.ssh/key’ user@servername.tld:’/srv/dir/’ /home/destination

-a -> archive, an abbreviation for some options like to prserve the set rights

-v -> verbosity, can be increased to vvv

-n -> dry run, shows what rsync would to, without any action

-P -> stands for progress, it restarts the downloads which were started before (source and destination have to be the same)

-e -> execute another program like ssh

ssh -i -> use an identity file (key file) for public key usage

now you may need to decrypt the key with your password and rsync does all the work, but be careful with your pathnames. rsync differentiates between /home/user__ and /home/user_/_. that is why it is recommended to start a dry run before.


~ by frankooh on 2011-01-19T14:54:21+00:00.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: