Tuesday, 26 May 2009

Quick remote backup over ssh

To create a quick backup from one linux box to another the following command can be used (it will ask for your password on the remote machine unless you have setup ssh keys):

$ tar zcvf - /path/to/files | ssh [email protected] "cat > backup.tgz"

No comments:

Post a comment