Skip to content

Instantly share code, notes, and snippets.

@nszceta
Created October 5, 2018 19:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nszceta/e75f614be46814b93a956bc1cdfe5470 to your computer and use it in GitHub Desktop.
Save nszceta/e75f614be46814b93a956bc1cdfe5470 to your computer and use it in GitHub Desktop.
Send an entire folder over the wire with XZ compression/decompression
#!/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