diff --git a/back/services/system.ts b/back/services/system.ts index 442297c688e..e421febd596 100644 --- a/back/services/system.ts +++ b/back/services/system.ts @@ -402,7 +402,7 @@ export default class SystemService { public async exportData(res: Response) { try { await promiseExec( - `cd ${config.rootPath} && tar -zcvf ${config.dataTgzFile} data/`, + `cd ${config.dataPath} && cd ../ && tar -zcvf ${config.dataTgzFile} data/`, ); res.download(config.dataTgzFile); } catch (error: any) {