X-Git-Url: https://git.hcoop.net/hcoop/scripts.git/blobdiff_plain/2c5daf49eb57dac4d1939e14eb396456260eb39c..139a90c847a6c77158d0b67e44aefddbc240c122:/hcoop-backup diff --git a/hcoop-backup b/hcoop-backup index 0f67b5d..111daca 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 +10 \ + -execdir rm -fr '{}' \; || true rm -rf $SUBDIR mkdir -p $SUBDIR mkdir -p $BACKUPTMP