mirror of
https://github.com/borgbackup/borg.git
synced 2024-12-27 10:18:12 +00:00
more borg check --repair output
This commit is contained in:
parent
0d01b9ae27
commit
e6e1d18f9a
1 changed files with 5 additions and 0 deletions
|
@ -1582,15 +1582,20 @@ def orphan_chunks_check(self):
|
|||
logger.error('{} orphaned objects found!'.format(len(orphaned)))
|
||||
self.error_found = True
|
||||
if self.repair:
|
||||
logger.info('Deleting orphaned objects...')
|
||||
for id_ in unused:
|
||||
self.repository.delete(id_)
|
||||
logger.info('Finished deleting orphaned objects.')
|
||||
else:
|
||||
logger.info('Orphaned objects check skipped (needs all archives checked).')
|
||||
|
||||
def finish(self, save_space=False):
|
||||
if self.repair:
|
||||
logger.info('Writing Manifest.')
|
||||
self.manifest.write()
|
||||
logger.info('Committing repo (may take a while, due to compact_segments)...')
|
||||
self.repository.commit(save_space=save_space)
|
||||
logger.info('Finished committing repo.')
|
||||
|
||||
|
||||
class ArchiveRecreater:
|
||||
|
|
Loading…
Reference in a new issue