Skip to content

Instantly share code, notes, and snippets.

@dky
Created January 3, 2013 18:54
Show Gist options
  • Save dky/4445940 to your computer and use it in GitHub Desktop.
Save dky/4445940 to your computer and use it in GitHub Desktop.
SSH backup to remote destination
( cd / ; tar -cvf - / ) | ssh user@backuphost 'cat > hostname_`date -I`.tar'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment