<div dir="ltr">So if I have append-only repo and created archive archive-A with ./file/A in it that occupied more than one segment (lets say those were segments 100 and 101), and then created more archives where that file in absent, and then 'borg prune'd repo::A, the following will happen:<div><br></div><div>- Segment 100 (which contained data from ./file/A and nothing else) will be no longer needed and will be physically removed from disk</div><div>- Segment 101 (which contained data from ./file/A + some other files as well) will be kept around and will not be compacted/rewritten to get rid of the chunk that corresponds to ./file/A</div><div><br></div><div>Or am I wrong for segment 100 will be kept around even after archive-A is pruned?</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Oct 31, 2017 at 12:03 AM, Thomas Waldmann <span dir="ltr"><<a href="mailto:tw@waldmann-edv.de" target="_blank">tw@waldmann-edv.de</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">> Can I clarify something?<br>
><br>
> append-only more repo would still delete unused segment files once the<br>
> last archive that references then is pruned, would it not?<br>
<br>
</span>A append-only mode repo looks like doing everything normally from the<br>
outside, so you can create and delete repos as usual.<br>
<br>
borg always appends new stuff (PUT, DELETE, COMMIT tags) at the end.<br>
<br>
The difference is that in append-only mode, there is no compact_segments<br>
that removes deleted / superceded PUT entries and rewrites non-compact<br>
segments into compact ones.<br>
<br>
So, the previous repo state is always conserved also when you only look<br>
at the first N segment files.<br>
<div class="HOEnZb"><div class="h5"><br>
<br>
--<br>
GPG ID: 9F88FB52FAF7B393<br>
GPG FP: 6D5B EF9A DD20 7580 5747 B70F 9F88 FB52 FAF7 B393<br>
<br>
______________________________<wbr>_________________<br>
Borgbackup mailing list<br>
<a href="mailto:Borgbackup@python.org">Borgbackup@python.org</a><br>
<a href="https://mail.python.org/mailman/listinfo/borgbackup" rel="noreferrer" target="_blank">https://mail.python.org/<wbr>mailman/listinfo/borgbackup</a><br>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div>D. Astapov</div></div></div>
</div>