Skip to content

Instantly share code, notes, and snippets.

@vegaasen
Created February 11, 2015 06:42
Show Gist options
  • Save vegaasen/63f22d9e216e1d0ecd66 to your computer and use it in GitHub Desktop.
Save vegaasen/63f22d9e216e1d0ecd66 to your computer and use it in GitHub Desktop.
Maven repository syncronization
#!/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