Skip to content

Instantly share code, notes, and snippets.

@matiskay
Created January 11, 2012 18:43
Show Gist options
  • Save matiskay/1596116 to your computer and use it in GitHub Desktop.
Save matiskay/1596116 to your computer and use it in GitHub Desktop.
Rsync
#!/bin/bash
# Always use -n to test
# Variables
REMOTE_PATH=''
SSH=''
LOCAL_PATH=''
rsync -a -z -v --progress --delete -e ssh $SSH:$REMOTE_PATH $LOCAL_PATH
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment