Created
December 14, 2015 01:36
-
-
Save robcat/3dbbafee096269b6843a to your computer and use it in GitHub Desktop.
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/bash | |
SOURCE='rsync://mirror.23media.de/archlinux' | |
DEST='/ipns/local' | |
REPOS='core' | |
RSYNC_OPTS="-rvtlHi --inplace --delete-after --copy-links --safe-links --delete-excluded --exclude=.*" | |
for REPO in $REPOS ; do | |
echo "Syncing $REPO" | |
rsync $RSYNC_OPTS ${SOURCE}/${REPO} ${DEST} | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment