diff options
| author | SimonHeimberg <simon.heimberg@heimberg-ea.ch> | 2017-05-04 14:49:30 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-05-04 14:49:30 +0200 |
| commit | 41f9bd1c8c80c773e094e5183983753181f7f8a5 (patch) | |
| tree | 0e6769b7636571b9693b0c2c19306ad9925657fa | |
| parent | 15329de6033f5fc054a10d41277ce6ed69925edc (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-x | rsync_tmbackup.sh | 2 |
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() { |
