[dak/security] Compress all pgsql backups
---
ChangeLog | 5 +++++
config/debian/cron.dinstall | 12 ++++++------
2 files changed, 11 insertions(+), 6 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index 620e8c0..429835b 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2008-06-14 Joerg Jaspert <joerg@debian.org>
+
+ * config/debian/cron.dinstall (POSTDUMP): Compress all
+ uncompressed psql backups
+
2008-06-08 Joerg Jaspert <joerg@debian.org>
* dak/process_unchecked.py (check_urgency): Lowercase urgency
diff --git a/config/debian/cron.dinstall b/config/debian/cron.dinstall
index 6256e65..95f5427 100755
--- a/config/debian/cron.dinstall
+++ b/config/debian/cron.dinstall
@@ -247,14 +247,14 @@ apt-ftparchive -q clean apt.conf
ts
-# Compress psql backups older than a week, but no more than 20 of them
+# Compress psql backups
echo "Compress old psql backups"
(cd $base/backup/
- find -maxdepth 1 -mindepth 1 -type f -name 'dump_*' \! -name '*.bz2' \! -name '*.gz' -mtime +7 |
- sort | head -n20 | while read dumpname; do
- echo "Compressing $dumpname"
- bzip2 -9 "$dumpname"
- done
+ find -maxdepth 1 -mindepth 1 -type f -name 'dump_*' \! -name '*.bz2' \! -name '*.gz' |
+ while read dumpname; do
+ echo "Compressing $dumpname"
+ bzip2 -9 "$dumpname"
+ done
)
ts
--
1.5.6.5
Reply to: