Skip to content

Commit 1beceb7

Browse files
authored
Merge pull request #1641 from Dokploy/1590-backup-maxing-buffer-size
fix(backups): suppress output during backup and restore processes
2 parents b2a8572 + bea0316 commit 1beceb7

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

packages/server/src/utils/backups/web-server.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ export const runWebServerBackup = async (backup: BackupSchedule) => {
2929
await execAsync(`cp -r ${BASE_PATH}/* ${tempDir}/filesystem/`);
3030

3131
await execAsync(
32-
`cd ${tempDir} && zip -r ${backupFileName} database.sql filesystem/`,
32+
`cd ${tempDir} && zip -r ${backupFileName} database.sql filesystem/ > /dev/null 2>&1`,
3333
);
3434

3535
const uploadCommand = `rclone copyto ${rcloneFlags.join(" ")} "${tempDir}/${backupFileName}" "${s3Path}"`;

packages/server/src/utils/restore/web-server.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ export const restoreWebServerBackup = async (
4545

4646
// Extract backup
4747
emit("Extracting backup...");
48-
await execAsync(`cd ${tempDir} && unzip ${backupFile}`);
48+
await execAsync(`cd ${tempDir} && unzip ${backupFile} > /dev/null 2>&1`);
4949

5050
// Restore filesystem first
5151
emit("Restoring filesystem...");

0 commit comments

Comments
 (0)