summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLaurent Cozic <laurent22@users.noreply.github.com>2017-06-08 14:02:44 +0100
committerGitHub <noreply@github.com>2017-06-08 14:02:44 +0100
commit9a5afa66f4bcada071219ec168ffc86904a0c828 (patch)
treedce27d6abb763fada6578a49c263e4b02dcf81f9
parent8ef83da5d94d061675aee680c243a1d708139346 (diff)
parentdb316ed18e6d83a3b942a02c3d3beb1380c6f43e (diff)
Merge pull request #76 from SimonHeimberg/patch-1
do not search for directories recurisve
-rwxr-xr-xrsync_tmbackup.sh2
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() {