[Qa-jenkins-scm] [Git][qa/jenkins.debian.net][master] reproducible Debian: move sql backups to userContent partition to save space of rootfs
Holger Levsen
gitlab at salsa.debian.org
Fri Nov 20 12:38:24 GMT 2020
Holger Levsen pushed to branch master at Debian QA / jenkins.debian.net
Commits:
ac27eacf by Holger Levsen at 2020-11-20T13:38:10+01:00
reproducible Debian: move sql backups to userContent partition to save space of rootfs
Signed-off-by: Holger Levsen <holger at layer-acht.org>
- - - - -
1 changed file:
- bin/reproducible_maintenance.sh
Changes:
=====================================
bin/reproducible_maintenance.sh
=====================================
@@ -30,19 +30,20 @@ REP_RESULTS=/srv/reproducible-results
if [ "$HOSTNAME" = "$MAINNODE" ] ; then
echo "$(date -u) - backup db and update public copy."
# prepare backup
- mkdir -p $REP_RESULTS/backup
+ BACKUPDIR=$BASE/debian/backups/
+ mkdir -p $BACKUPDIR
# keep 30 days and the 1st of the month
DAY=$(date -d "30 day ago" '+%d')
DATE=$(date -d "30 day ago" '+%Y-%m-%d')
- BACKUPFILE="$REP_RESULTS/backup/reproducible_$DATE.sql.xz"
+ BACKUPFILE="$BACKUPDIR/reproducible_$DATE.sql.xz"
if [ "$DAY" != "01" ] && [ -f "$BACKUPFILE" ] ; then
rm -f "$BACKUPFILE"
fi
# Make a daily backup of database
DATE=$(date '+%Y-%m-%d')
- BACKUPFILE="$REP_RESULTS/backup/reproducible_$DATE.sql"
+ BACKUPFILE="$BACKUPDIR/reproducible_$DATE.sql"
if [ ! -f $BACKUPFILE.xz ] ; then
# make the backup
DATE=$(date '+%Y-%m-%d')
View it on GitLab: https://salsa.debian.org/qa/jenkins.debian.net/-/commit/ac27eacfa97910e153d7ebafed1228cb79904d77
--
View it on GitLab: https://salsa.debian.org/qa/jenkins.debian.net/-/commit/ac27eacfa97910e153d7ebafed1228cb79904d77
You're receiving this email because of your account on salsa.debian.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/qa-jenkins-scm/attachments/20201120/f6186aae/attachment-0001.html>
More information about the Qa-jenkins-scm
mailing list