diff options
author | Pierre Schmitz <pierre@archlinux.de> | 2010-08-22 21:16:30 +0200 |
---|---|---|
committer | Pierre Schmitz <pierre@archlinux.de> | 2010-08-22 21:16:30 +0200 |
commit | 7915bbf62a1fd8f1e7efd114bdbc65ccb28821ff (patch) | |
tree | 9ccb6836f83aca0904108b2231bbe3e5a5578268 | |
parent | 8e131ae2ca71db1fff4a156615eb3e424a07b027 (diff) | |
download | repo-tools-7915bbf62a1fd8f1e7efd114bdbc65ccb28821ff.tar.gz repo-tools-7915bbf62a1fd8f1e7efd114bdbc65ccb28821ff.tar.xz |
use kernel.org by default; display lastsync time
-rwxr-xr-x | syncrepo | 16 |
1 files changed, 8 insertions, 8 deletions
@@ -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))" |