From e0b278fa0638b0da6919159a33fe9cd5ce87a819 Mon Sep 17 00:00:00 2001 From: Joerg Jaspert Date: Thu, 10 Apr 2014 21:44:09 +0200 Subject: [PATCH 1/1] Adjust security cron.daily to xz dumps and delete -mtime +30 ones Signed-off-by: Joerg Jaspert --- config/debian-security/cron.daily | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/config/debian-security/cron.daily b/config/debian-security/cron.daily index ba4aaa62..3476d7db 100755 --- a/config/debian-security/cron.daily +++ b/config/debian-security/cron.daily @@ -89,10 +89,10 @@ trap - EXIT symlinks -d -r $ftpdir -pg_dump obscurity > /org/security-master.debian.org/dak-backup/dump_$(date +%Y.%m.%d-%H:%M:%S) -find -maxdepth 1 -mindepth 1 -type f -name 'dump_*' \! -name '*.bz2' \! -name '*.gz' -mmin +720 | -while read dumpname; do - bzip2 -9fv "$dumpname" -done +pg_file="${base}/dak-backup/dump_$(date +%Y.%m.%d-%H:%M:%S)" +pg_dump obscurity > "${pg_file}" +nice xz -9 "${pg_file}" + +find "${base}/dak-backup" -mtime +30 \! -name '.nobackup' -delete ################################################################################ -- 2.39.2