Skip to content

Instantly share code, notes, and snippets.

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 insparrow/ece5647ab1bfb13d254e to your computer and use it in GitHub Desktop.
Save insparrow/ece5647ab1bfb13d254e to your computer and use it in GitHub Desktop.
Non-interactive ssh key backup script example
#!/bin/bash
source $HOME/.keychain/$HOSTNAME-sh
rsync -avz --delete user@example.com:/var/www/ /backup
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment