prune
attempted 22hrs rewrite, errored on "No space left on device" (checks for prevention, pruning strategy with less repack, salvaging the repo)
#947
-
Hi! Yesterday, for testing my rustic backup launcher script, I had created two snapshots shortly after each other. I first ran Here's the
(took 13h15m6s, rustic had estimated 22h ETA) The backup drive is entirely filled up:
The repo is 1.8T of 2.7T in size. The rest of space filled is the duplication from the prune repacking.
I believed Could rustic issue a warning with a
Now my HDD is entirely filled up. What can I do now? I need to bring my repository back in order and undo the half-done-then-crashed- I had naively expected pruning meant deleting data. Instead, my repository was duplicated. Can this be prevented? Addendum: Using
A run of |
Beta Was this translation helpful? Give feedback.
Replies: 6 comments 14 replies
-
Thanks a lot @LeoniePhiline for writing about your problems!
|
Beta Was this translation helpful? Give feedback.
-
In general, if repacking because of pack sizes poses a problem, there are the following things, you can use to tweak:
|
Beta Was this translation helpful? Give feedback.
-
Moreover, sometimes the two-way pruning may result in unexpectedly not removing no-longer used packs at the end of the prune run. This is because prune can't know if a backup takes place in parallel which actually does need the packs. (The current behavior is extra-safe and does even keep packs which are repacked only in order to resize the packs - this can actually be improved in future...). If, however, you really know that you are running prune exclusively, you can use |
Beta Was this translation helpful? Give feedback.
-
And, of course, running |
Beta Was this translation helpful? Give feedback.
-
I would do the following:
|
Beta Was this translation helpful? Give feedback.
-
Added an issue in the |
Beta Was this translation helpful? Give feedback.
For the archive:
The solution was to drop the index during instant-delete prune with zero allowed repack, just to then recreate the index at the end of the prune operation.
In other words:
(With
--early-delete-index
being available inrustic-core
since rustic-rs/rustic_core#63.)After the initial few Gigabytes had been cleared, repacking in larger and larger chunks, by repeating with increasing
--max-repack
from10G
to100G
and more (without--early-delete-index
).