Skip to content

Instantly share code, notes, and snippets.

@srpouyet
Created May 31, 2011 07:23
Show Gist options
  • Save srpouyet/1000099 to your computer and use it in GitHub Desktop.
Save srpouyet/1000099 to your computer and use it in GitHub Desktop.
Tar a dir and send over remote
# tar a dir and send to remote over ssh
tar czf - dirname | ssh user@host '(cd /home && tar xzvf -)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment