Created
October 5, 2018 19:09
-
-
Save nszceta/e75f614be46814b93a956bc1cdfe5470 to your computer and use it in GitHub Desktop.
Send an entire folder over the wire with XZ compression/decompression
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
tar cf - my_folder | xz -c | ssh destination "xz -d | tar xvf -" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment