Skip to content

Instantly share code, notes, and snippets.

@ljmccarthy
Created September 13, 2018 21:21
Show Gist options
  • Save ljmccarthy/bb17c6fd3cc0bf053c4effd1a0e1f39d to your computer and use it in GitHub Desktop.
Save ljmccarthy/bb17c6fd3cc0bf053c4effd1a0e1f39d to your computer and use it in GitHub Desktop.
#!/bin/sh
VERSION="edge"
PLATFORM="x86_64"
DESTDIR=/mnt/d/alpine
sync() {
REPO="$1"
echo "Synchronizing $1..."
rsync --verbose --archive --update --hard-links --delete --delete-after --delay-updates --timeout=600 \
rsync://rsync.alpinelinux.org/alpine/$VERSION/$REPO/$PLATFORM $DESTDIR/$REPO
}
sync main
sync community
sync testing
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment