[D-community-commits] r395 - trunk/fai-config-dir/files/root/make_backup
Holger Levsen
holger at alioth.debian.org
Wed Nov 11 12:33:33 UTC 2009
Author: holger
Date: 2009-11-11 12:33:33 +0000 (Wed, 11 Nov 2009)
New Revision: 395
Modified:
trunk/fai-config-dir/files/root/make_backup/bikeshed
Log:
really exclude it and also delete old archives
Modified: trunk/fai-config-dir/files/root/make_backup/bikeshed
===================================================================
--- trunk/fai-config-dir/files/root/make_backup/bikeshed 2009-11-11 11:44:42 UTC (rev 394)
+++ trunk/fai-config-dir/files/root/make_backup/bikeshed 2009-11-11 12:33:33 UTC (rev 395)
@@ -27,12 +27,12 @@
dirs="$ALL ${!i}"
for j in $dirs ; do {
k=`echo $j | sed -e "s/\//_/g"`
- cd $base && nice tar czf $target/` date +%Y%m%d`_${i}${k}.tar.gz --numeric-owner --exclude './srv/backup/* ./root/.restore/*' .$j
+ cd $base && nice tar czf $target/` date +%Y%m%d`_${i}${k}.tar.gz --numeric-owner --exclude './srv/backup/*' --exclude './root/restore/*' .$j
} done
} done
echo "`date` tar cleanup"
cd $target
-find . -type f -mtime +1 -exec rm -v {} \;
+find . -type f -mtime +0 -exec rm -v {} \;
echo "`date` end"
More information about the D-community-commits
mailing list