X-Git-Url: http://git.hcoop.net/clinton/scripts.git/blobdiff_plain/ae0e82f01d008bb172b7ef15cdda69e21a18dcd9..5ebe1338ae7c1cf4a309c1cbc36042d5982524e7:/hcoop-backup diff --git a/hcoop-backup b/hcoop-backup index 45007f7..0d1d520 100755 --- a/hcoop-backup +++ b/hcoop-backup @@ -16,7 +16,7 @@ PATH=$PATH:/bin:/usr/bin:/sbin:/usr/sbin COMPRESS_EXT=.gz COMPRESS_PROG=gzip # units for BWLIMIT are KB/s -BWLIMIT=250 +BWLIMIT=325 IFS=$'\n' @@ -44,8 +44,8 @@ function copy_over () { } cd $BACKUPDIR -find . -mindepth 1 -maxdepth 1 -type d -ctime +3 -delete || true - +find . -mindepth 1 -maxdepth 1 -type d -ctime +7 \ + -execdir rm -fr '{}' \; || true rm -rf $SUBDIR mkdir -p $SUBDIR mkdir -p $BACKUPTMP @@ -92,6 +92,7 @@ diff allfiles debfiles | grep '^<' | cut -b 3- | \ grep -v '^/usr/share/info/dir\.old$' | \ grep -v '^/usr/share/emacs21/site-lisp/' | \ grep -v '^/usr/share/emacs22/site-lisp/' | \ + grep -v '^/usr/share/snmp/mibs/\.index$' | \ grep -v '^/usr/share/vim/addons/doc/tags$' \ > backupfiles