From ae646143429e7eec24bafbc927e88815193d5274 Mon Sep 17 00:00:00 2001 From: milky0217 Date: Wed, 15 Jul 2026 11:01:22 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20DB=20=E5=A4=87=E4=BB=BD=E4=BF=9D?= =?UTF-8?q?=E7=95=99=E4=BB=8E=201=20=E5=A2=9E=E8=87=B3=207=EF=BC=9B?= =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E6=AF=8F=E6=97=A5=20cron=20=E8=87=AA?= =?UTF-8?q?=E5=8A=A8=E5=A4=87=E4=BB=BD=EF=BC=88=E7=94=9F=E4=BA=A7+?= =?UTF-8?q?=E5=BC=80=E5=8F=91=E5=BA=93=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/common.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/common.sh b/lib/common.sh index eafdcd7..3bad4f7 100644 --- a/lib/common.sh +++ b/lib/common.sh @@ -272,7 +272,7 @@ backup_database() { remote "mkdir -p ${REMOTE_DIR}/backups" if remote "sudo docker exec ${DB_CONTAINER} pg_dump -Fc -U ${DB_USER} ${DB_NAME} > /tmp/backup_${ts}.dump && mv /tmp/backup_${ts}.dump '${bf}'" 2>&1; then log_info "数据库备份成功: ${DB_NAME}_${ts}.dump" - cleanup_old_db_backups + cleanup_old_db_backups 7 else log_warn "数据库备份失败,继续部署" fi