This commit is contained in:
root@saturn committed 2016-02-02 11:37:48 +01:00
1 parent cc339d24ae
commit 8aad42ccd9
3 files changed
+11 -5

No files matched your search

+3 -2
View File
@@ -2,12 +2,13 @@
#RSYNCSOURCE=rsync://ftp5.gwdg.de/pub/linux/archlinux/
#RSYNCSOURCE=rsync://mirror.nl.leaseweb.net/archlinux/
RSYNCSOURCE=rsync://mirror.one.com/archlinux/
#RSYNCSOURCE=rsync://mirror.neuf.no/archlinux/
# Define where you want the mirror-data to be on your mirror
BASEDIR=/store/mirror/archlinux
rsync --verbose --recursive --times --links --hard-links \
--stats --delete-after --ignore-errors \
${RSYNCSOURCE} ${BASEDIR} || echo "Failed to rsync from ${RSYNCSOURCE}."
${RSYNCSOURCE} ${BASEDIR} &>> /opt/scripts/archlinux.log || echo "Failed to rsync from ${RSYNCSOURCE}."
date
date &>> /opt/scripts/archlinux.log
Executable → Regular
+5 -2
View File
@@ -13,6 +13,7 @@ warn() {
# https://launchpad.net/ubuntu/+archivemirrors
# rsync://<iso-country-code>.rsync.archive.ubuntu.com/ubuntu should always work
RSYNCSOURCE=rsync://no.archive.ubuntu.com/ubuntu/
#RSYNCSOURCE=rsync://ubuntu.uib.no/ubuntu-archive/
#RSYNCSOURCE=rsync://ftp.uninett.no/ubuntu/
# Define where you want the mirror-data to be on your mirror
@@ -27,10 +28,12 @@ rsync -4 --verbose --recursive --times --links --hard-links \
--stats --chmod=a+rx \
--exclude "Packages*" --exclude "Sources*" \
--exclude "Release*" \
${RSYNCSOURCE} ${BASEDIR} || fatal "First stage of sync failed."
${RSYNCSOURCE} ${BASEDIR} &>> /opt/scripts/ubuntu_archive_two_stage.log || fatal "First stage of sync failed."
rsync -4 --verbose --recursive --times --links --hard-links \
--stats --delete --chmod=a+rx --delete-after \
${RSYNCSOURCE} ${BASEDIR} || fatal "Second stage of sync failed."
${RSYNCSOURCE} ${BASEDIR} &>> /opt/scripts/ubuntu_archive_two_stage.log || fatal "Second stage of sync failed."
date -u > ${BASEDIR}/project/trace/$(hostname -f)
date &>> /opt/scripts/ubuntu_archive_two_stage.log
+3 -1
View File
@@ -26,6 +26,8 @@ fi
rsync --verbose --recursive --times --links --hard-links \
--stats --delete-after \
${RSYNCSOURCE} ${BASEDIR} || fatal "Failed to rsync from ${RSYNCSOURCE}."
${RSYNCSOURCE} ${BASEDIR} &>> /opt/scripts/ubuntu_releases.log || fatal "Failed to rsync from ${RSYNCSOURCE}."
date -u > ${BASEDIR}/.trace/$(hostname -f)
date &>> /opt/scripts/ubuntu_releases.log