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 1adf30d commit 53cdf9aCopy full SHA for 53cdf9a
src/processors/helper/helper.cron.service.ts
@@ -92,7 +92,8 @@ export class CronService {
92
try {
93
await $`mongodump -h 127.0.0.1 -d ${MONGO_DB.collectionName} -o ${backupDirPath} >/dev/null 2>&1`
94
cd(backupDirPath)
95
- await $`zip -r backup-${dateDir} mx-space/* && rm -r mx-space`
+ await nothrow($`pwd && ls -a`)
96
+ await $`zip -r backup-${dateDir} mx-space/* && rm -rf mx-space`
97
98
this.logger.log('--> 备份成功')
99
} catch (e) {
0 commit comments