backend: nicer log-detective tarball names

This commit is contained in:
Pavel Raiskup 2024-11-01 14:37:27 +01:00
parent 6753976645
commit 23863ceb16

View file

@ -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 }}"