From b321530dcf5475f3b84f5ed92c7a864d7ff79dce Mon Sep 17 00:00:00 2001 From: whyour Date: Mon, 18 Nov 2024 22:59:07 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=9C=AC=E5=9C=B0=E9=83=A8?= =?UTF-8?q?=E7=BD=B2=E8=AE=BE=E7=BD=AE=20dataPath=20=E5=90=8E=EF=BC=8C?= =?UTF-8?q?=E5=A4=87=E4=BB=BD=E7=9B=AE=E5=BD=95=E5=8F=AF=E8=83=BD=E9=94=99?= =?UTF-8?q?=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- back/services/system.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) {