Skip to content

Instantly share code, notes, and snippets.

@NapoleonWils0n
Created November 11, 2012 19:19
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 NapoleonWils0n/4055952 to your computer and use it in GitHub Desktop.
Save NapoleonWils0n/4055952 to your computer and use it in GitHub Desktop.
ssh: tar files over ssh
#!/bin/sh
tar cvpzf -/ | ssh user@host ""cat > /backup.tar.gz""
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment