diff options
author | 2022-04-11 21:39:36 -0700 | |
---|---|---|
committer | 2022-04-11 21:39:46 -0700 | |
commit | 716f4a195bf290f8e796bce04e309fd16bc8bee0 (patch) | |
tree | ad89eee447a81f86a37f625ec1ec18ceb3d470da /sync-origin-mirror-releases.sh | |
parent | Makefile: add tag helper (diff) | |
download | mastermirror-scripts-716f4a195bf290f8e796bce04e309fd16bc8bee0.tar.gz mastermirror-scripts-716f4a195bf290f8e796bce04e309fd16bc8bee0.tar.bz2 mastermirror-scripts-716f4a195bf290f8e796bce04e309fd16bc8bee0.zip |
sync-origin-mirror*sh: new helper scripts
Diffstat (limited to 'sync-origin-mirror-releases.sh')
-rwxr-xr-x | sync-origin-mirror-releases.sh | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/sync-origin-mirror-releases.sh b/sync-origin-mirror-releases.sh new file mode 100755 index 0000000..c0e6d4a --- /dev/null +++ b/sync-origin-mirror-releases.sh @@ -0,0 +1,11 @@ +#!/bin/bash +# Copyright 2011-2015 Gentoo Authors; Distributed under the GPL v2 + +FINALDIR="/data/mirror" +PASSWD_FILE="" +RSYNC="/usr/bin/rsync" +RSYNC_ARGS="--recursive --links --perms --times --delete --hard-links --no-motd --timeout=300 ${PASSWD_FILE:+--password-file }${PASSWD_FILE}" +RSYNC_ARGS="${RSYNC_ARGS} --quiet" + +module=releases +${RSYNC} ${RSYNC_ARGS} masterreleases.gentoo.org::${module}/ ${FINALDIR}/${module}/ |