From 7915bbf62a1fd8f1e7efd114bdbc65ccb28821ff Mon Sep 17 00:00:00 2001 From: Pierre Schmitz Date: Sun, 22 Aug 2010 21:16:30 +0200 Subject: use kernel.org by default; display lastsync time --- syncrepo | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/syncrepo b/syncrepo index 4a0b9ca..9eea4cb 100755 --- a/syncrepo +++ b/syncrepo @@ -4,8 +4,7 @@ home="$(dirname "$(readlink -f $0)")" target="${home}/repo" tmp="${home}/tmp" lock='/tmp/mirrorsync.lck' -source='-e ssh gerolde.archlinux.org:/srv/ftp' -repos='core,extra,testing,community,community-testing,staging,pool' +source='mirrors.kernel.org::archlinux' [ ! -d "${target}" ] && mkdir -p "${target}" [ ! -d "${tmp}" ] && mkdir -p "${tmp}" @@ -14,12 +13,13 @@ touch "${lock}" trap "rm -f '${lock}'" EXIT INT TERM rsync -rtlvH --safe-links --delete-after --progress -h \ - --delay-updates \ + --delay-updates --no-motd \ --temp-dir="${tmp}" \ - --exclude='*.db.tar.gz.old' \ - --exclude='*.abs.tar.gz*' \ - --exclude='*.files.tar.gz*' \ --exclude='*.links.tar.gz*' \ - --exclude='lastsync' \ - ${source}/{${repos}} \ + --exclude='/other' \ + --exclude='/sources' \ + --exclude='/iso' \ + ${source} \ "${target}" + +echo "Last sync was $(date -d @$(cat repo/lastsync))" -- cgit v1.2.3-24-g4f1b