Skip to content

Instantly share code, notes, and snippets.

@watsoncj
Created July 5, 2011 14:40
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 watsoncj/1064954 to your computer and use it in GitHub Desktop.
Save watsoncj/1064954 to your computer and use it in GitHub Desktop.
2-Way Folder Sync with Rsync
#!/bin/sh
LOCAL="$HOME/Music"
REMOTE="10.10.10.10:/home/user/Music"
cd $LOCAL
rsync -vaurP . $REMOTE
rsync -vaurP $REMOTE/ .
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment