Skip to content

Instantly share code, notes, and snippets.

@franklinjavier
Last active August 29, 2015 14:08
Show Gist options
  • Select an option

  • Save franklinjavier/68e36467e5ced0148400 to your computer and use it in GitHub Desktop.

Select an option

Save franklinjavier/68e36467e5ced0148400 to your computer and use it in GitHub Desktop.
Sync files with rsync
#!/bin/bash
if [ $1 = "up" ]; then
rsync -azP $2 site@franklinjavier.com:$3
else
rsync -azP site@franklinjavier.com:$2 $3
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment