diff --git a/packages/server/src/utils/backups/postgres.ts b/packages/server/src/utils/backups/postgres.ts index 29974106..c30d8861 100644 --- a/packages/server/src/utils/backups/postgres.ts +++ b/packages/server/src/utils/backups/postgres.ts @@ -39,7 +39,9 @@ export const runPostgresBackup = async ( if (postgres.serverId) { await execAsyncRemote(postgres.serverId, backupCommand); } else { - await execAsync(backupCommand); + await execAsync(backupCommand, { + shell: "/bin/bash", + }); } await sendDatabaseBackupNotifications({ diff --git a/packages/server/src/utils/backups/utils.ts b/packages/server/src/utils/backups/utils.ts index 67cf097d..0d4471f6 100644 --- a/packages/server/src/utils/backups/utils.ts +++ b/packages/server/src/utils/backups/utils.ts @@ -220,7 +220,6 @@ export const getBackupCommand = ( const containerSearch = getContainerSearchCommand(backup); const backupCommand = generateBackupCommand(backup); return ` - #!/bin/bash set -eo pipefail; echo "[$(date)] Starting backup process..." >> ${logPath}; echo "[$(date)] Executing backup command..." >> ${logPath};