mirror of
https://github.com/Dokploy/dokploy
synced 2025-06-26 18:27:59 +00:00
fix(backups): suppress output during backup and restore processes
- Updated the backup command in runWebServerBackup to suppress output by redirecting it to /dev/null. - Modified the restore command in restoreWebServerBackup to also suppress output during the extraction of backups.
This commit is contained in:
parent
b2a8572d10
commit
bea0316bbd
@ -29,7 +29,7 @@ export const runWebServerBackup = async (backup: BackupSchedule) => {
|
|||||||
await execAsync(`cp -r ${BASE_PATH}/* ${tempDir}/filesystem/`);
|
await execAsync(`cp -r ${BASE_PATH}/* ${tempDir}/filesystem/`);
|
||||||
|
|
||||||
await execAsync(
|
await execAsync(
|
||||||
`cd ${tempDir} && zip -r ${backupFileName} database.sql filesystem/`,
|
`cd ${tempDir} && zip -r ${backupFileName} database.sql filesystem/ > /dev/null 2>&1`,
|
||||||
);
|
);
|
||||||
|
|
||||||
const uploadCommand = `rclone copyto ${rcloneFlags.join(" ")} "${tempDir}/${backupFileName}" "${s3Path}"`;
|
const uploadCommand = `rclone copyto ${rcloneFlags.join(" ")} "${tempDir}/${backupFileName}" "${s3Path}"`;
|
||||||
|
@ -45,7 +45,7 @@ export const restoreWebServerBackup = async (
|
|||||||
|
|
||||||
// Extract backup
|
// Extract backup
|
||||||
emit("Extracting backup...");
|
emit("Extracting backup...");
|
||||||
await execAsync(`cd ${tempDir} && unzip ${backupFile}`);
|
await execAsync(`cd ${tempDir} && unzip ${backupFile} > /dev/null 2>&1`);
|
||||||
|
|
||||||
// Restore filesystem first
|
// Restore filesystem first
|
||||||
emit("Restoring filesystem...");
|
emit("Restoring filesystem...");
|
||||||
|
Loading…
Reference in New Issue
Block a user