From: mwolson_admin Date: Thu, 5 Jun 2008 00:54:15 +0000 (-0400) Subject: hcoop-backup: Only keep 2 backup runs lying around. X-Git-Url: http://git.hcoop.net/clinton/scripts.git/commitdiff_plain/5ebe1338ae7c1cf4a309c1cbc36042d5982524e7 hcoop-backup: Only keep 2 backup runs lying around. --- diff --git a/hcoop-backup b/hcoop-backup index 111daca..0d1d520 100755 --- a/hcoop-backup +++ b/hcoop-backup @@ -44,7 +44,7 @@ function copy_over () { } cd $BACKUPDIR -find . -mindepth 1 -maxdepth 1 -type d -ctime +10 \ +find . -mindepth 1 -maxdepth 1 -type d -ctime +7 \ -execdir rm -fr '{}' \; || true rm -rf $SUBDIR mkdir -p $SUBDIR