From 716f4a195bf290f8e796bce04e309fd16bc8bee0 Mon Sep 17 00:00:00 2001 From: "Robin H. Johnson" Date: Mon, 11 Apr 2022 21:39:36 -0700 Subject: sync-origin-mirror*sh: new helper scripts --- sync-origin-mirror-distfiles.sh | 11 +++++++++++ sync-origin-mirror-experimental.sh | 11 +++++++++++ sync-origin-mirror-releases.sh | 11 +++++++++++ sync-origin-mirror-snapshots.sh | 11 +++++++++++ 4 files changed, 44 insertions(+) create mode 100755 sync-origin-mirror-distfiles.sh create mode 100755 sync-origin-mirror-experimental.sh create mode 100755 sync-origin-mirror-releases.sh create mode 100755 sync-origin-mirror-snapshots.sh diff --git a/sync-origin-mirror-distfiles.sh b/sync-origin-mirror-distfiles.sh new file mode 100755 index 0000000..b87cd37 --- /dev/null +++ b/sync-origin-mirror-distfiles.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=distfiles +${RSYNC} ${RSYNC_ARGS} masterreleases.gentoo.org::${module}/ ${FINALDIR}/${module}/ diff --git a/sync-origin-mirror-experimental.sh b/sync-origin-mirror-experimental.sh new file mode 100755 index 0000000..e01d782 --- /dev/null +++ b/sync-origin-mirror-experimental.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=experimental +${RSYNC} ${RSYNC_ARGS} masterreleases.gentoo.org::${module}/ ${FINALDIR}/${module}/ 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}/ diff --git a/sync-origin-mirror-snapshots.sh b/sync-origin-mirror-snapshots.sh new file mode 100755 index 0000000..5d4a31e --- /dev/null +++ b/sync-origin-mirror-snapshots.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=snapshots +${RSYNC} ${RSYNC_ARGS} masterreleases.gentoo.org::${module}/ ${FINALDIR}/${module}/ -- cgit v1.2.3-65-gdbad