summaryrefslogtreecommitdiffstats
path: root/syncrepo
diff options
context:
space:
mode:
authorPierre Schmitz <pierre@archlinux.de>2010-08-22 21:16:30 +0200
committerPierre Schmitz <pierre@archlinux.de>2010-08-22 21:16:30 +0200
commit7915bbf62a1fd8f1e7efd114bdbc65ccb28821ff (patch)
tree9ccb6836f83aca0904108b2231bbe3e5a5578268 /syncrepo
parent8e131ae2ca71db1fff4a156615eb3e424a07b027 (diff)
downloadrepo-tools-7915bbf62a1fd8f1e7efd114bdbc65ccb28821ff.tar.gz
repo-tools-7915bbf62a1fd8f1e7efd114bdbc65ccb28821ff.tar.xz
use kernel.org by default; display lastsync time
Diffstat (limited to 'syncrepo')
-rwxr-xr-xsyncrepo16
1 files 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))"