X-Git-Url: https://git.hcoop.net/hcoop/scripts.git/blobdiff_plain/2c5daf49eb57dac4d1939e14eb396456260eb39c..5ebe1338ae7c1cf4a309c1cbc36042d5982524e7:/hcoop-backup diff --git a/hcoop-backup b/hcoop-backup index 0f67b5d..0d1d520 100755 --- a/hcoop-backup +++ b/hcoop-backup @@ -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