Skip to content

Instantly share code, notes, and snippets.

@socketbox
Created November 7, 2014 21:52
Show Gist options
  • Save socketbox/b2c5e6dafe54565d2552 to your computer and use it in GitHub Desktop.
Save socketbox/b2c5e6dafe54565d2552 to your computer and use it in GitHub Desktop.
Silly Bash Tricks
# tar files to a remote destination
tar czf - . | ssh remote "( cd /somewhere ; cat > file.tar.gz )"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment