summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimonHeimberg <simon.heimberg@heimberg-ea.ch>2017-05-04 14:49:30 +0200
committerGitHub <noreply@github.com>2017-05-04 14:49:30 +0200
commit41f9bd1c8c80c773e094e5183983753181f7f8a5 (patch)
tree0e6769b7636571b9693b0c2c19306ad9925657fa
parent15329de6033f5fc054a10d41277ce6ed69925edc (diff)
do not search for directories recurisve
This gives a big speed improvement when the dest dir contains other directories containting many subdirectories.
-rwxr-xr-xrsync_tmbackup.sh2
1 files changed, 1 insertions, 1 deletions
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() {