diff --git a/archlinux.sh b/archlinux.sh index 1ab69df..e4045bd 100755 --- a/archlinux.sh +++ b/archlinux.sh @@ -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 diff --git a/ubuntu_archive_two_stage.sh b/ubuntu_archive_two_stage.sh old mode 100755 new mode 100644 index f8852df..7ba4a99 --- a/ubuntu_archive_two_stage.sh +++ b/ubuntu_archive_two_stage.sh @@ -13,6 +13,7 @@ warn() { # https://launchpad.net/ubuntu/+archivemirrors # rsync://.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 diff --git a/ubuntu_releases.sh b/ubuntu_releases.sh index ac28b3d..cd4681b 100755 --- a/ubuntu_releases.sh +++ b/ubuntu_releases.sh @@ -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