mirror of
https://gitee.com/nocobase/nocobase.git
synced 2025-07-02 03:02:19 +08:00
fix: backup file dir of sub apps (#4985)
This commit is contained in:
parent
c25be38e45
commit
5f09674b9c
@ -165,7 +165,13 @@ export class Dumper extends AppMigrator {
|
|||||||
}
|
}
|
||||||
|
|
||||||
backUpStorageDir() {
|
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 }) {
|
async allBackUpFilePaths(options?: { includeInProgress?: boolean; dir?: string }) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user