[Git][qa/jenkins.debian.net][master] rdn: make db backup more robust
Holger Levsen (@holger)
gitlab at salsa.debian.org
Sun Apr 27 09:12:37 BST 2025
Holger Levsen pushed to branch master at Debian QA / jenkins.debian.net
Commits:
a1d9881a by Holger Levsen at 2025-04-27T10:12:28+02:00
rdn: make db backup more robust
Signed-off-by: Holger Levsen <holger at layer-acht.org>
- - - - -
1 changed file:
- bin/rebuilderd_db_backup.sh
Changes:
=====================================
bin/rebuilderd_db_backup.sh
=====================================
@@ -24,7 +24,9 @@ mkdir -p $BACKUP_DIR
cd $BACKUP_DIR
[ -d /srv/rebuilderd/$ARCH/stats/db-backup/db-back-$TODAY ] && exit 0
+sleep 15 # sleep a bit to ensure full shutdown of the db
+sync
mkdir db-back-${TODAY}
-cp -av $BASE_PATH/rebuilderd.db* db-back-${TODAY}/
+cp -av $BASE_PATH/rebuilderd.db* db-back-${TODAY}/ || true # sometimes the db-(shm|wal) vanishes before it's copied
sync
View it on GitLab: https://salsa.debian.org/qa/jenkins.debian.net/-/commit/a1d9881a67dfc1a344d85d6be3c464124cab7f81
--
View it on GitLab: https://salsa.debian.org/qa/jenkins.debian.net/-/commit/a1d9881a67dfc1a344d85d6be3c464124cab7f81
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/20250427/6afb2bae/attachment-0001.htm>
More information about the Qa-jenkins-scm
mailing list