1
0
Fork 0
mirror of https://github.com/borgbackup/borg.git synced 2024-12-28 02:38:43 +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))) logger.error('{} orphaned objects found!'.format(len(orphaned)))
self.error_found = True self.error_found = True
if self.repair: if self.repair:
logger.info('Deleting orphaned objects...')
for id_ in unused: for id_ in unused:
self.repository.delete(id_) self.repository.delete(id_)
logger.info('Finished deleting orphaned objects.')
else: else:
logger.info('Orphaned objects check skipped (needs all archives checked).') logger.info('Orphaned objects check skipped (needs all archives checked).')
def finish(self, save_space=False): def finish(self, save_space=False):
if self.repair: if self.repair:
logger.info('Writing Manifest.')
self.manifest.write() self.manifest.write()
logger.info('Committing repo (may take a while, due to compact_segments)...')
self.repository.commit(save_space=save_space) self.repository.commit(save_space=save_space)
logger.info('Finished committing repo.')
class ArchiveRecreater: class ArchiveRecreater: