[Git][qa/jenkins.debian.net][master] reproduce.d.n: add simple script to backup the db and publish it
Holger Levsen (@holger)
gitlab at salsa.debian.org
Fri Jan 3 11:33:45 GMT 2025
Holger Levsen pushed to branch master at Debian QA / jenkins.debian.net
Commits:
d2aeffbd by Holger Levsen at 2025-01-03T12:33:32+01:00
reproduce.d.n: add simple script to backup the db and publish it
Signed-off-by: Holger Levsen <holger at layer-acht.org>
- - - - -
1 changed file:
- + bin/rebuilderd_db_backup.sh
Changes:
=====================================
bin/rebuilderd_db_backup.sh
=====================================
@@ -0,0 +1,18 @@
+# WIP. currently to be run manually as the db user...
+
+TODAY=$(date '+%Y-%m-%d' -u)
+cd
+mkdir db-back-${TODAY}
+cp -av rebuilderd.db* db-back-${TODAY}/
+echo
+echo "it's safe to restart rebuilderd again."
+echo
+cd db-back-${TODAY}
+for i in rebuilderd.db* ; do
+ xz --verbose $i
+done
+cd
+du -sch db-back-${TODAY}/
+
+mkdir /srv/rebuilderd/stats/db-backup
+mv db-back-${TODAY} /srv/rebuilderd/stats/db-backup/
View it on GitLab: https://salsa.debian.org/qa/jenkins.debian.net/-/commit/d2aeffbdd2bbc29ffb327f764c68ace39657bad0
--
View it on GitLab: https://salsa.debian.org/qa/jenkins.debian.net/-/commit/d2aeffbdd2bbc29ffb327f764c68ace39657bad0
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/20250103/14d67d6d/attachment-0001.htm>
More information about the Qa-jenkins-scm
mailing list