mirror of
https://github.com/caprover/caprover
synced 2026-09-27 00:55:37 +00:00
Added more comments
This commit is contained in:
@@ -25,6 +25,14 @@ router.post('/createbackup/', function(req, res, next) {
|
||||
})
|
||||
.then(function(pathOfBackup) {
|
||||
res.download(pathOfBackup, function(err) {
|
||||
if (err) {
|
||||
Logger.e(err)
|
||||
}
|
||||
|
||||
Logger.d(
|
||||
`Downloading backup finished: ${pathOfBackup} Removing directory...`
|
||||
)
|
||||
|
||||
backupManager.deleteBackupDirectoryIfExists()
|
||||
})
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user