Skip to content

Instantly share code, notes, and snippets.

@robcat
Created December 14, 2015 01:36
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save robcat/3dbbafee096269b6843a to your computer and use it in GitHub Desktop.
Save robcat/3dbbafee096269b6843a to your computer and use it in GitHub Desktop.
#!/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