[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

[dak/master] Adjust security cron.daily to xz dumps and delete -mtime +30 ones



Signed-off-by: Joerg Jaspert <joerg@debian.org>
---
 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 ba4aaa6..3476d7d 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
 
 ################################################################################
-- 
1.7.10.4


Reply to: