MCPcopy
hub / github.com/borgbackup/borg / info

Method info

src/borg/repository.py:286–291  ·  view source on GitHub ↗

return some infos about the repo (must be opened first)

(self)

Source from the content-addressed store, hash-verified

284 self.opened = False
285
286 def info(self):
287 """return some infos about the repo (must be opened first)"""
288 # note: don't do anything expensive here or separate the lock refresh into a separate method.
289 self._lock_refresh() # do not remove, see do_with_lock()
290 info = dict(id=self.id, version=self.version)
291 return info
292
293 def check(self, repair=False, max_duration=0):
294 """Check repository consistency"""

Callers 1

checkMethod · 0.45

Calls 1

_lock_refreshMethod · 0.95

Tested by

no test coverage detected