1
0
Fork 0
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:
Thomas Waldmann 2018-04-27 23:57:47 +02:00
parent 0d01b9ae27
commit e6e1d18f9a

View file

@ -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: