mirror of
https://github.com/whyour/qinglong.git
synced 2025-05-23 14:56:07 +08:00
修复本地部署设置 dataPath 后,备份目录可能错误
This commit is contained in:
parent
02c6ad8004
commit
b321530dcf
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user