We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f6db776 commit dfd2da5Copy full SHA for dfd2da5
packages/cli/src/lib/setup/setupBackup.ts
@@ -148,14 +148,11 @@ export class BackupRestore {
148
}
149
150
151
+ /**
152
+ * Get the directory where backups should be stored
153
+ */
154
static getBackupDir(): string {
- const dataDir = path.join(controllerDir, tools.getDefaultDataDir());
-
- const parts = dataDir.split('/');
155
- parts.pop(); // remove data or appName-data
156
- parts.pop();
157
158
- return path.normalize(`${parts.join('/')}/backups/`);
+ return path.join(tools.getRootDir(), 'backups/');
159
160
161
copyFileSync(source: string, target: string): void {
0 commit comments