MCPcopy
hub / github.com/caprover/caprover / createBackup

Method createBackup

src/user/system/BackupManager.ts:608–626  ·  view source on GitHub ↗
(iBackupCallbacks: IBackupCallbacks)

Source from the content-addressed store, hash-verified

606 }
607
608 createBackup(iBackupCallbacks: IBackupCallbacks) {
609 const self = this
610 const certbotManager = iBackupCallbacks.getCertbotManager()
611
612 return Promise.resolve() //
613 .then(function () {
614 certbotManager.lock()
615 return self
616 .createBackupInternal(iBackupCallbacks)
617 .then(function (data) {
618 certbotManager.unlock()
619 return data
620 })
621 .catch(function (err) {
622 certbotManager.unlock()
623 throw err
624 })
625 })
626 }
627
628 private createBackupInternal(iBackupCallbacks: IBackupCallbacks) {
629 const self = this

Callers 1

SystemRouter.tsFile · 0.80

Calls 4

getCertbotManagerMethod · 0.80
createBackupInternalMethod · 0.80
lockMethod · 0.45
unlockMethod · 0.45

Tested by

no test coverage detected