X-Git-Url: http://git.hcoop.net/hcoop/zz_old/misc/scripts.git/blobdiff_plain/ffff3a6fa22d4d1505347693bcfcfbcaad6fdc28..351efb89b024c84229f91c98dbabe2f35ea22aa3:/hcoop-backup diff --git a/hcoop-backup b/hcoop-backup index acecab4..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 +10 -delete || true - +find . -mindepth 1 -maxdepth 1 -type d -ctime +10 \ + -execdir rm -fr '{}' \; || true rm -rf $SUBDIR mkdir -p $SUBDIR mkdir -p $BACKUPTMP