How to repack complete repository with defined pack size #1169
-
Hi guys, I already tried a little bit of that idea via restic and was not successfull: Link to restic forum |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 5 replies
-
Hi and welcome @elgatobavaria! Thanks for your question! Can you tell me why you thing that the repository size would be (significantly) reduced by changing the pack size? IMO it should only differ marginally. Besides this, changing the pack size of an existing repo can be done by:
|
Beta Was this translation helpful? Give feedback.
-
Note that rustic doesn't use a fixed (target) pack size, but by default increases the packsize automatically with growing repository size. The factors for this growing can be customized by the above options. |
Beta Was this translation helpful? Give feedback.
-
@aawsome I checked the two repos with 8Mib and 128Mib pack size again. It seems that the script had not set compression to max. So i execute it again. |
Beta Was this translation helpful? Give feedback.
Hi and welcome @elgatobavaria!
Thanks for your question! Can you tell me why you thing that the repository size would be (significantly) reduced by changing the pack size? IMO it should only differ marginally.
Besides this, changing the pack size of an existing repo can be done by:
rustic config
using the--set-datapack-size*
options and--set-*-packsize-tolerate-percent
options (readrustic config -h
for information about the options)prune
run will automatically repack non-fitting packs. You may want to use--instant-delete
if you can ensure that you repo is not accessed in parallel.