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 |