Tar Backup via SSH

Tar Backup via SSH

Create Backup

tar -cf - sourcedir | ssh user@destinationserver 'cat > file.tar'

Restore Backup

ssh user@destinationserver 'cat file.tar' | tar -xf - -C root/dir