leantime: fix backup file naming (#11137)

This commit is contained in:
CanbiZ (MickLesk)
2026-01-24 23:01:36 +01:00
committed by GitHub
parent 8764bbc754
commit 5ce7f35793

View File

@@ -31,8 +31,8 @@ function update_script() {
setup_mariadb setup_mariadb
if check_for_gh_release "leantime" "Leantime/leantime"; then if check_for_gh_release "leantime" "Leantime/leantime"; then
msg_info "Creating Backup" msg_info "Creating Backup"
mariadb-dump leantime >"/opt/${APP}_db_backup_$(date +%F).sql" mariadb-dump leantime >"/opt/leantime_db_backup_$(date +%F).sql"
tar -czf "/opt/${APP}_backup_$(date +%F).tar.gz" "/opt/${APP}" tar -czf "/opt/leantime_backup_$(date +%F).tar.gz" "/opt/leantime"
mv /opt/leantime /opt/leantime_bak mv /opt/leantime /opt/leantime_bak
msg_ok "Backup Created" msg_ok "Backup Created"