jborg / attic

Deduplicating backup program
Other
1.11k stars 104 forks source link

Question: Does the repo files get modified in any way? #369

Closed wighawag closed 8 years ago

wighawag commented 8 years ago

Zbackup has the following feature:

Is it the same for attic?

ThomasWaldmann commented 8 years ago

Usually, new data is appended and new files are added. Existing data is not modified.

What it does though is that if a chunk is deleted (and thus creates an unused "hole" in an existing segment), it will flag this segment for later compaction. Compaction means that it will transfer all used chunks from non-compact segment files to new, compact segment files and afterwards remove the non-compact files.

Chunks will be deleted when you delete archives (or let "prune" delete archives following some given policy). Also, the manifest will be regularly rewritten (new manifest added, old deleted) when adding or removing archives.

So, in short: it is very careful and does not modify existing data in files, but it still gives you the opportunity to delete/prune archives and keep storage needs low.

ThomasWaldmann commented 8 years ago

btw, this issue's title is way too long, please shorten it.

wighawag commented 8 years ago

ok thanks for the info