Last active
August 29, 2015 14:08
-
-
Save franklinjavier/68e36467e5ced0148400 to your computer and use it in GitHub Desktop.
Sync files with rsync
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/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