Borg: How to delete a dir/file in an archive?

Created on 22 Jul 2017  Â·  4Comments  Â·  Source: borgbackup/borg

How can one delete a part of one (or multiple) archive(s) such as a dir or file?
Obviously you cannot use borg delete for that.

However, also borg mount does not work as – at least in my tests – it seems to mount the repo in read-only mode, i.e. I cannot create files in there e.g.

So how can this be accomplished? (With borg itself, without third-party tools… at least, preferably)

question

Most helpful comment

When I do not use rechunking or compression, does this redownload the archives?

In this case only metadata is processed, the actual data of the archive is not processed.

All 4 comments

Ah, thanks so this example basically shows it:

borg recreate /mnt/backup --exclude home/icke/Pictures/drunk_photos

However this is only available in v1.1.0, so there is no way with borg <1.1.0?
And secondly, does this redownload the archives? When I do not use rechunking or compression?

And thirdly you may include this question in the FAQ.

And secondly, does this redownload the archives? When I do not use rechunking or compression?

?

When I do not use rechunking or compression, does this redownload the archives?

In this case only metadata is processed, the actual data of the archive is not processed.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

zatricky picture zatricky  Â·  3Comments

phdoerfler picture phdoerfler  Â·  6Comments

auanasgheps picture auanasgheps  Â·  5Comments

enkore picture enkore  Â·  5Comments

unlandm picture unlandm  Â·  4Comments