MCPcopy Create free account
hub / github.com/apache/cloudstack / backup

Method backup

python/lib/cloudutils/serviceConfig.py:61–75  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

59 raise CloudRuntimeException("Configure %s failed, Please check the /var/log/cloudstack/agent/setup.log for detail"%self.serviceName)
60
61 def backup(self):
62 if self.status is None:
63 return True
64
65 writeProgressBar("Restore " + self.serviceName + " ...", None)
66 result = False
67 try:
68 for cfo in self.cfoHandlers:
69 cfo.backup()
70
71 result = self.restore()
72 except (CloudRuntimeException, CloudInternalException) as e:
73 logging.debug(e)
74
75 writeProgressBar(None, result)
76
77 def config(self):
78 return True

Callers

nothing calls this directly

Calls 4

restoreMethod · 0.95
writeProgressBarFunction · 0.85
debugMethod · 0.80
backupMethod · 0.65

Tested by

no test coverage detected