[Git][qa/jenkins.debian.net][master] rdn: also delete old and empty backup directories
Holger Levsen (@holger)
gitlab at salsa.debian.org
Tue Jun 9 22:59:17 BST 2026
Holger Levsen pushed to branch master at Debian QA / jenkins.debian.net
Commits:
fe0256b2 by Holger Levsen at 2026-06-09T23:59:09+02:00
rdn: also delete old and empty backup directories
Signed-off-by: Holger Levsen <holger at layer-acht.org>
- - - - -
1 changed file:
- bin/rebuilderd_db_backup_compress.sh
Changes:
=====================================
bin/rebuilderd_db_backup_compress.sh
=====================================
@@ -31,5 +31,6 @@ for DIR in /srv/rebuilderd/*/stats/db-backup/ ; do
KEEP=$(find ${MONTH_DIRECTORY}-* -type d | sort -u | tail -1)
# delete the rest
find ${MONTH_DIRECTORY}-* -name "*.zst" -type f | grep -v $KEEP | xargs -r rm
+ rmdir $MONTH_DIRECTORY 2>/dev/null || true
done
done
View it on GitLab: https://salsa.debian.org/qa/jenkins.debian.net/-/commit/fe0256b228c71d89b9aac396c6903528f81e6f74
--
View it on GitLab: https://salsa.debian.org/qa/jenkins.debian.net/-/commit/fe0256b228c71d89b9aac396c6903528f81e6f74
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/20260609/2e5970d1/attachment.htm>
More information about the Qa-jenkins-scm
mailing list