Skip to content

Commit

Permalink
修复本地部署设置 dataPath 后,备份目录可能错误
Browse files Browse the repository at this point in the history
  • Loading branch information
whyour committed Nov 18, 2024
1 parent 02c6ad8 commit b321530
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion back/services/system.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit b321530

Please sign in to comment.