diff options
| author | Laurent Cozic <laurent22@users.noreply.github.com> | 2017-06-08 14:02:44 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-06-08 14:02:44 +0100 |
| commit | 9a5afa66f4bcada071219ec168ffc86904a0c828 (patch) | |
| tree | dce27d6abb763fada6578a49c263e4b02dcf81f9 | |
| parent | 8ef83da5d94d061675aee680c243a1d708139346 (diff) | |
| parent | db316ed18e6d83a3b942a02c3d3beb1380c6f43e (diff) | |
Merge pull request #76 from SimonHeimberg/patch-1
do not search for directories recurisve
| -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 e9446c8..fc8ceb8 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" -maxdepth 1 -type d -name "????-??-??-??????" -prune | sort -r" } fn_expire_backup() { |
