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

Revision #2
Created 24 January 2022 23:21:28 by tinfoil-hat
Updated 24 January 2022 23:26:25 by tinfoil-hat