Unix backup using SSH

Unix backup using SSH

I was testing several different ways of doing backup from one Linux server to another. If you have ssh installed on both, it is quite easy.

You just have to do this:

ssh -l userid source "tar cfz - /dir" > klyt.tar.gz

This make a backup from server "source" using account "userid" and backups "/dir" to the server where the command is initiated. The backup will be a compressed tar-file named "klyt.tar.gz"

By jens @ 02-03-2004 View and add comments (0)