diff --git a/packages/plugins/@nocobase/plugin-backup-restore/src/server/dumper.ts b/packages/plugins/@nocobase/plugin-backup-restore/src/server/dumper.ts index d431dfb648..ebe1192866 100644 --- a/packages/plugins/@nocobase/plugin-backup-restore/src/server/dumper.ts +++ b/packages/plugins/@nocobase/plugin-backup-restore/src/server/dumper.ts @@ -165,7 +165,13 @@ export class Dumper extends AppMigrator { } backUpStorageDir() { - return path.resolve(process.cwd(), 'storage', 'backups'); + const paths = [process.cwd(), 'storage', 'backups']; + + if (this.app.name !== 'main') { + paths.push(this.app.name); + } + + return path.resolve(...paths); } async allBackUpFilePaths(options?: { includeInProgress?: boolean; dir?: string }) {