1
0
Fork 0
mirror of https://github.com/borgbackup/borg.git synced 2024-12-26 17:57:59 +00:00

Merge pull request #3844 from ThomasWaldmann/more-check-output-master

More check output (fwd port to master)
This commit is contained in:
TW 2018-05-19 00:47:35 +02:00 committed by GitHub
commit 6290f44425
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1721,16 +1721,22 @@ def orphan_chunks_check(self):
if orphaned:
logger.error('{} orphaned objects found!'.format(len(orphaned)))
self.error_found = True
if self.repair:
if self.repair and unused:
logger.info('Deleting %d orphaned and %d superseded objects...' % (
len(orphaned), len(self.possibly_superseded)))
for id_ in unused:
self.repository.delete(id_)
logger.info('Finished deleting orphaned/superseded 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: