remove backupdir again if daily backup errors, in order to try again
next time
This commit is contained in:
parent
6e199321bc
commit
6c41cb0450
|
@ -138,6 +138,7 @@ async function dailyBackup() {
|
|||
await updateBackupRedis(canvasRedis, backupRedis, canvases);
|
||||
await createPngBackup(backupRedis, canvases, backupDir);
|
||||
} catch (e) {
|
||||
fs.rmSync(backupDir, { recursive: true });
|
||||
console.log('Error occured during daily backup', e);
|
||||
}
|
||||
console.log('Daily full backup done');
|
||||
|
|
Loading…
Reference in New Issue
Block a user