diff --git a/packages/loot-core/src/platform/server/sqlite/index.electron.ts b/packages/loot-core/src/platform/server/sqlite/index.electron.ts
index d8a225f53333e57f9c48571ddebeebecfcc9c282..74c2b7dd188dcd04470f871a7d0c370ae011d5d6 100644
--- a/packages/loot-core/src/platform/server/sqlite/index.electron.ts
+++ b/packages/loot-core/src/platform/server/sqlite/index.electron.ts
@@ -130,7 +130,7 @@ export function closeDatabase(db: SQL.Database) {
 export async function exportDatabase(db: SQL.Database) {
   // electron does not support better-sqlite serialize since v21
   // save to file and read in the raw data.
-  const name = `backup-for-export-${uuidv4()}.db`;
+  const name = `${process.env.ACTUAL_DATA_DIR}/backup-for-export-${uuidv4()}.db`;
 
   await db.backup(name);
 
diff --git a/upcoming-release-notes/3250.md b/upcoming-release-notes/3250.md
new file mode 100644
index 0000000000000000000000000000000000000000..454d994318f1652f8bcef7be0dcb8cc8c88430bf
--- /dev/null
+++ b/upcoming-release-notes/3250.md
@@ -0,0 +1,6 @@
+---
+category: Bugfix
+authors: [MikesGlitch]
+---
+
+Fix Export on Mac desktop app