diff --git a/packages/server/src/utils/backups/compose.ts b/packages/server/src/utils/backups/compose.ts index 79cb69e8d..1e12cafaf 100644 --- a/packages/server/src/utils/backups/compose.ts +++ b/packages/server/src/utils/backups/compose.ts @@ -38,7 +38,9 @@ export const runComposeBackup = async ( if (compose.serverId) { await execAsyncRemote(compose.serverId, backupCommand); } else { - await execAsync(backupCommand); + await execAsync(backupCommand, { + shell: "/bin/bash", + }); } await sendDatabaseBackupNotifications({ diff --git a/packages/server/src/utils/backups/mariadb.ts b/packages/server/src/utils/backups/mariadb.ts index 6f71939ed..b998c0064 100644 --- a/packages/server/src/utils/backups/mariadb.ts +++ b/packages/server/src/utils/backups/mariadb.ts @@ -37,7 +37,9 @@ export const runMariadbBackup = async ( if (mariadb.serverId) { await execAsyncRemote(mariadb.serverId, backupCommand); } else { - await execAsync(backupCommand); + await execAsync(backupCommand, { + shell: "/bin/bash", + }); } await sendDatabaseBackupNotifications({ diff --git a/packages/server/src/utils/backups/mongo.ts b/packages/server/src/utils/backups/mongo.ts index 815439d58..6da79b6c6 100644 --- a/packages/server/src/utils/backups/mongo.ts +++ b/packages/server/src/utils/backups/mongo.ts @@ -35,7 +35,9 @@ export const runMongoBackup = async (mongo: Mongo, backup: BackupSchedule) => { if (mongo.serverId) { await execAsyncRemote(mongo.serverId, backupCommand); } else { - await execAsync(backupCommand); + await execAsync(backupCommand, { + shell: "/bin/bash", + }); } await sendDatabaseBackupNotifications({ diff --git a/packages/server/src/utils/backups/mysql.ts b/packages/server/src/utils/backups/mysql.ts index 80a248272..4799f47c1 100644 --- a/packages/server/src/utils/backups/mysql.ts +++ b/packages/server/src/utils/backups/mysql.ts @@ -37,7 +37,9 @@ export const runMySqlBackup = async (mysql: MySql, backup: BackupSchedule) => { if (mysql.serverId) { await execAsyncRemote(mysql.serverId, backupCommand); } else { - await execAsync(backupCommand); + await execAsync(backupCommand, { + shell: "/bin/bash", + }); } await sendDatabaseBackupNotifications({ applicationName: name,