aboutsummaryrefslogtreecommitdiff
blob: da94c3326185cdf4e42d438e7292379647759ea9 (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="/release/binpackages"

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