blob: bae48af41103dd6991bcf354e0513a7f63fe5a32 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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
|