[Git][qa/jenkins.debian.net][master] rdn: do backups as root but compress & cleanup as user rebuilderd
Holger Levsen (@holger)
gitlab at salsa.debian.org
Sun Nov 15 14:06:09 GMT 2026
Holger Levsen pushed to branch master at Debian QA / jenkins.debian.net
Commits:
70f44652 by Holger Levsen at 2026-11-15T15:06:01+01:00
rdn: do backups as root but compress & cleanup as user rebuilderd
Signed-off-by: Holger Levsen <holger at layer-acht.org>
- - - - -
2 changed files:
- bin/rebuilderd_db_backup.sh
- hosts/osuosl5-amd64/etc/systemd/system/rebuilderd-db-backup at .service
Changes:
=====================================
bin/rebuilderd_db_backup.sh
=====================================
@@ -29,5 +29,6 @@ sleep 15 # sleep a bit to ensure full shutdown of the db
sync
mkdir db-back-${TODAY}
cp -v $BASE_PATH/rebuilderd.db* db-back-${TODAY}/ || true # sometimes the db-(shm|wal) vanishes before it's copied
+chown -R rebuilderd:rebuilderd $BACKUP_DIR/db-back-${TODAY}
sync
=====================================
hosts/osuosl5-amd64/etc/systemd/system/rebuilderd-db-backup at .service
=====================================
@@ -5,7 +5,6 @@ Description=Periodically backup a rebuilderd database
ExecStartPre=/usr/bin/systemctl stop rebuilderd@%i.service
ExecStart=/srv/jenkins/bin/rebuilderd_db_backup.sh %i
ExecStartPost=/usr/bin/systemctl start rebuilderd@%i.service
-User=rebuilderd
RemainAfterExit=no
Type=oneshot
View it on GitLab: https://salsa.debian.org/qa/jenkins.debian.net/-/commit/70f44652a6e2c2c90d9fe31c9e96a32784155923
--
View it on GitLab: https://salsa.debian.org/qa/jenkins.debian.net/-/commit/70f44652a6e2c2c90d9fe31c9e96a32784155923
You're receiving this email because of your account on salsa.debian.org. Manage all notifications: https://salsa.debian.org/-/profile/notifications | Help: https://salsa.debian.org/help
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/qa-jenkins-scm/attachments/20261115/2f31c0b9/attachment.htm>
More information about the Qa-jenkins-scm
mailing list