[Git][qa/jenkins.debian.net][master] rdn backups: actually delete empty dirs

Holger Levsen (@holger) gitlab at salsa.debian.org
Wed Nov 18 13:11:10 GMT 2026



Holger Levsen pushed to branch master at Debian QA / jenkins.debian.net


Commits:
10477388 by Holger Levsen at 2026-11-18T14:10:55+01:00
rdn backups: actually delete empty dirs

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
=====================================
@@ -35,7 +35,7 @@ for DIR in /srv/rebuilderd/*/stats/db-backup/ ; do
 		# keep the last backup of each month
 		KEEP=$(find ${MONTH_DIRECTORY}-* -type f | sort -u | tail -1)
 		# delete the rest
-		find ${MONTH_DIRECTORY}-* -name "*.zst" -type f | grep -v $KEEP | xargs -r rm
+		find ${MONTH_DIRECTORY}-* -name "*.zst" -type f | grep -v $KEEP | xargs -r rm || true
 		# TODO:
 		# if the backup is older than 12+current month, only keep backups from jan, apr, july, october (so backups from 2024 atm, which we dont have)
 		:



View it on GitLab: https://salsa.debian.org/qa/jenkins.debian.net/-/commit/1047738894018b0bfe19e009d1fd881b4f0d146a

-- 
View it on GitLab: https://salsa.debian.org/qa/jenkins.debian.net/-/commit/1047738894018b0bfe19e009d1fd881b4f0d146a
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/20261118/b7620a11/attachment.htm>


More information about the Qa-jenkins-scm mailing list