Signed-off-by: Joerg Jaspert <joerg@debian.org>
# sync with debbugs
echo "--" >> $report
timestamp=$(date "+%Y-%m-%d-%H:%M")
- mkdir -p $queuedir/${timestamp}
+ mkdir -p $queuedir/bts_version_track_archive/${timestamp}
rsync -aq $queuedir/bts_version_track/ $queuedir/bts_version_track_archive/${timestamp}
- rmdir --ignore-fail-on-non-empty $queuedir/${timestamp} # remove if empty.
+ rmdir --ignore-fail-on-non-empty $queuedir/bts_version_track_archive/${timestamp} # remove if empty.
# rsync -aq -e "ssh -o Batchmode=yes -o ConnectTimeout=30 -o SetupTimeout=30" --remove-source-files $queuedir/bts_version_track/ bugs-sync:/org/bugs.debian.org/versions/queue/ftp-master/ 2>/dev/null && touch $lockdir/synced_bts_version || true
NOW=$(date +%s)
TSTAMP=$(stat -c %Y $lockdir/synced_bts_version)
# sync with debbugs
echo "--" >> $report
timestamp=$(date "+%Y-%m-%d-%H:%M")
- mkdir -p $queuedir/${timestamp}
+ mkdir -p $queuedir/bts_version_track_archive/${timestamp}
rsync -aq $queuedir/bts_version_track/ $queuedir/bts_version_track_archive/${timestamp}
- rmdir --ignore-fail-on-non-empty $queuedir/${timestamp} # remove if empty.
+ rmdir --ignore-fail-on-non-empty $queuedir/bts_version_track_archive/${timestamp} # remove if empty.
rsync -aq -e "ssh -o Batchmode=yes -o ConnectTimeout=30 -o SetupTimeout=30" --remove-source-files $queuedir/bts_version_track/ bugs-sync:/org/bugs.debian.org/versions/queue/ftp-master/ 2>/dev/null && touch $lockdir/synced_bts_version || true
NOW=$(date +%s)
TSTAMP=$(stat -c %Y $lockdir/synced_bts_version)