Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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
You can’t perform that action at this time.