From 8e470e3abad9a52a450646ce44c243ac3d7d6657 Mon Sep 17 00:00:00 2001 From: Felix Stupp Date: Mon, 23 Nov 2020 11:24:16 +0100 Subject: [PATCH] common: backup_autoremove: Fix find working with symlink of backups dir --- roles/common/templates/backup_autoremove.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/common/templates/backup_autoremove.sh b/roles/common/templates/backup_autoremove.sh index 845013a..d1d756e 100644 --- a/roles/common/templates/backup_autoremove.sh +++ b/roles/common/templates/backup_autoremove.sh @@ -12,7 +12,7 @@ function getDirName() { grep --only-matching --perl-regexp '^.+(?=/[^/]+)'; } -find {{ backups_directory | quote }} -type f | +find -H {{ backups_directory | quote }} -type f | onlyDatedFiles | getDirName | sort --unique |