[BD]: Backup compressed tarball on the fly via ssh

tar -zc ./path | ssh user@server "cat > ~/file.tar.gz"

Compress & send & extract remote:

tar -zc ./path | ssh user@server "tar -zx -C /destination"

Leave a Reply

Your email address will not be published. Required fields are marked *