From c7e6e14bde5e7d1fcede0bd5ff42bbcfc18e52a6 Mon Sep 17 00:00:00 2001 From: "Andreas K. Hüttel" Date: Sat, 5 Aug 2023 12:19:28 +0200 Subject: add sync-binpackages.sh MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Andreas K. Hüttel --- sync-binpackages.sh | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100755 sync-binpackages.sh diff --git a/sync-binpackages.sh b/sync-binpackages.sh new file mode 100755 index 0000000..bae48af --- /dev/null +++ b/sync-binpackages.sh @@ -0,0 +1,19 @@ +#!/bin/bash +# Copyright 2011-2023 Gentoo Authors; Distributed under the GPL v2 + +# this is the directory where the tree is fully assembled and all packages are signed +# we assume it's on dipper / releng-incoming, but might as well give a full rsync +# specification here +INITIALDIR="blabla" + +FINALDIR="/var/tmp/gmirror-releases/binpackages" +RSYNC="/usr/bin/rsync" +RSYNC_ARGS="--no-motd --recursive --times --links --ignore-errors --delete --delete-after --timeout=300 --exclude=timestamp*" +RSYNC_ARGS="${RSYNC_ARGS} --quiet" + +[[ -d ${FINALDIR} ]] || mkdir ${FINALDIR} +${RSYNC} ${RSYNC_ARGS} ${INITIALDIR}/ ${FINALDIR}/ + +/bin/date -u '+%s %c' > ${FINALDIR}/timestamp.x +/bin/date -R -u > ${FINALDIR}/timestamp.chk +/bin/date -u '+%s' > ${FINALDIR}/timestamp.mirmon -- cgit v1.2.3-65-gdbad