Merge pull request #5025 from Dokploy/fix/backup-double-dump-4222

fix: run database dump once per backup and clean up partial uploads on failure
(cherry picked from commit 4791863ff9)

[skip ci]
This commit is contained in:
Mauricio Siu
2026-08-09 18:11:38 +00:00
committed by Dokploy Bot
parent 692c68f013
commit bd92dfb8c1
7 changed files with 23 additions and 38 deletions
+2 -3
View File
@@ -37,11 +37,10 @@ export const runComposeBackup = async (
try {
const rcloneFlags = getS3Credentials(destination);
const rcloneDestination = `:s3:${destination.bucket}/${bucketDestination}`;
const rcloneCommand = `rclone rcat ${rcloneFlags.join(" ")} "${rcloneDestination}"`;
const backupCommand = getBackupCommand(
backup,
rcloneCommand,
rcloneFlags,
rcloneDestination,
deployment.logPath,
);
if (compose.serverId) {