From 41f9bd1c8c80c773e094e5183983753181f7f8a5 Mon Sep 17 00:00:00 2001 From: SimonHeimberg Date: Thu, 4 May 2017 14:49:30 +0200 Subject: do not search for directories recurisve This gives a big speed improvement when the dest dir contains other directories containting many subdirectories. --- rsync_tmbackup.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rsync_tmbackup.sh b/rsync_tmbackup.sh index 24170b8..2f03162 100755 --- a/rsync_tmbackup.sh +++ b/rsync_tmbackup.sh @@ -60,7 +60,7 @@ fn_parse_date() { } fn_find_backups() { - fn_run_cmd "find "$DEST_FOLDER" -type d -name "????-??-??-??????" -prune | sort -r" + fn_run_cmd "find "$DEST_FOLDER" -type d -maxdepth=1 -name "????-??-??-??????" -prune | sort -r" } fn_expire_backup() { -- cgit v1.2.3