From 6364fe1ca069b015a37aa8438b9a32670dd96b16 Mon Sep 17 00:00:00 2001 From: SimonHeimberg Date: Thu, 4 May 2017 14:55:32 +0200 Subject: [PATCH] correct position for maxdept parameter as suggested by the output of find --- rsync_tmbackup.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rsync_tmbackup.sh b/rsync_tmbackup.sh index 2f03162..0e8b7fd 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 -maxdepth=1 -name "????-??-??-??????" -prune | sort -r" + fn_run_cmd "find "$DEST_FOLDER" -maxdepth=1 -type d -name "????-??-??-??????" -prune | sort -r" } fn_expire_backup() {