Created
July 19, 2012 15:59
-
-
Save mjangda/3144921 to your computer and use it in GitHub Desktop.
Bash script to sync to svn repos using rsync.
This file contains 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
rsync -rv --delete --exclude='.svn' /from /to | |
cd /to | |
svn status | grep '^!' | awk '{print $2}' | xargs svn rm | |
svn status | grep '^?' | awk '{print $2}' | xargs svn add |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment