fix(postgres-dump-zstd-docker-sock): 修正备份文件扩展名

This commit is contained in:
严浩
2025-09-22 18:46:20 +08:00
parent 1747370ae8
commit 13c6f807e0

View File

@@ -121,7 +121,7 @@ if [ ! -S "$DOCKER_SOCKET" ]; then
fi
timestamp=$(date +%Y-%m-%d_%H-%M-%S)
backup_path="$BACKUP_DIR/${BACKUP_PREFIX}${timestamp}.zst"
backup_path="$BACKUP_DIR/${BACKUP_PREFIX}${timestamp}.sql.zst"
docker_api_base="http://localhost/${DOCKER_API_VERSION}"
exec_create_endpoint="${docker_api_base}/containers/${PG_CONTAINER_NAME}/exec"