Created
February 11, 2015 06:42
-
-
Save vegaasen/63f22d9e216e1d0ecd66 to your computer and use it in GitHub Desktop.
Maven repository syncronization
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
#!/bin/sh | |
M2_HOST=mirrors.ibiblio.org; | |
M2_HOST_URI=maven2; | |
M2_LOCAL_LOCATION=/tmp/maven2; | |
echo "starting to syncronize all of the bits and pieces of $M2_HOST/$M2_HOST_URI. Everything will by synced to $M2_LOCAL_LOCATION"; | |
rsync -v -t -l -r $M2_HOST::$M2_HOST_URI $M2_LOCAL_LOCATION; | |
echo "Syncronization is complete. Enjoy :-)."; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment