-
I have a repo of ~600 GiB and I've decided to switch from restic to using the rustic client. (Side note: I had to do a restore for the first time and the rustic feature that made me switch is resumable restores.) It seems to me that rustic wants to repack almost half the data. # rustic prune -n
to repack: 17797 packs, 255710 blobs, 285.9 GiB
-- snip --
unused size after prune: 5.2 GiB (0.84% of remaining size) I'm not clear on why, as the unused size is below 1% even without repacking. # rustic prune -n --max-repack 0
to repack: 0 packs, 0 blobs, 0 B
-- snip --
unused size after prune: 5.2 GiB (0.84% of remaining size) Am I wrong in my understanding that repacking should kick in only once the unused size is above 5% (per default)? I've also been slightly confused about # rustic prune -n --max-repack 10%
to repack: 17805 packs, 255815 blobs, 286.1 GiB Is this not the right way to pass a percentage value? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 5 replies
-
There is actually a somewhat hidden feature in rustic that the packsize can be configured for the repository and depends on a fixed size plus a growfactor which increases the packsize depending on the actual repository size. Another effect is that TL;DR: I think in your case About |
Beta Was this translation helpful? Give feedback.
-
Oh, one more question: Is it possible to put the |
Beta Was this translation helpful? Give feedback.
-
The options that you can set via the The options that can be given on the command line or the config file on the other hand are per-client options like which repositories to talk to or which backup sources are used with which options. For those the config file is the recommended place to put the options. |
Beta Was this translation helpful? Give feedback.
There is actually a somewhat hidden feature in rustic that the packsize can be configured for the repository and depends on a fixed size plus a growfactor which increases the packsize depending on the actual repository size.
You can tweak this for the repository using the
rustic config
command.Another effect is that
prune
can be configured to repack packs which are too small or too large. The thresholds can also be configured usingrustic config
. Defaults are to repack too small packs but to keep too large packs.TL;DR: I think in your case
rustic prune
computes a larger targeted pack size as restic used to use and theprune
command wants to repack the too-small packs.About
--max-repack
:…