diff --git a/roles/log-detective-backup/templates/backup.sh.j2 b/roles/log-detective-backup/templates/backup.sh.j2 index 80868227d3..9f2dd49e56 100644 --- a/roles/log-detective-backup/templates/backup.sh.j2 +++ b/roles/log-detective-backup/templates/backup.sh.j2 @@ -2,12 +2,12 @@ set -e -basename=$(date +%s).tar.gz +basename=ld-$(date +"%Y%m%d_%H%M%S").tar.gz ld_backup_path="{{ ld_backup_path }}" backup_path=$ld_backup_path/$basename # Find last modified -recent=$(find "$ld_backup_path" -type f -name "*tar.gz" | sort | tail -n 1) +recent=$(find "$ld_backup_path" -type f -name "ld-*tar.gz" | sort | tail -n 1) wget -O "$backup_path" "{{ ld_dump_url }}"