Execute this on the host that will receive the data from the source server:
Code: Select all
$ ssh user@source-server "tar czpf - /some/important/data /some/other/file/or/folder" | tar xzpf - -C /backup/destination/folder
Here's a modified version which skips the (gzip-)compression part (e.g. for LAN):
Code: Select all
$ ssh user@source-server "tar -cpf - /home/user/whatever" > backup.tar