Hi all,
Not really sure why but Restic doesn’t seem to be pruning my repo according to the max-unused parameter I am using.
Background
Repo has about 809Gb of used data and about 200GB of unused data. As a full max-unused 0
prune takes too long to complete (and causes me issues with temporary scratch space) - instead I slowly prune down 5GB at a time — it was going fine till I had about 105GB left and now Restic doesn’t seem to prune down anymore. Despite having the unused data in repo, when I give it the stepdown prune command, it just doesn’t do anything and I am in the same position as before running.
What is going on?
• The output of restic version
restic 0.17.1 compiled with go1.23.1 on linux/amd64
• The complete commands that you ran (leading up to the problem or to reproduce the problem).
for i in $(seq 105 -5 5); do
echo Remaining $i GB
prune -r $TARGET --max-unused $i\G
done
• The complete output of those commands (except any repeated output when obvious it’s not needed for debugging).
Remaining 105GB
repository 241d8bc5 opened (version 2, compression level auto)
loading indexes...
[0:12] 100.00% 18 / 18 index files loaded
loading all snapshots...
finding data that is still in use for 20 snapshots
[0:16] 100.00% 20 / 20 snapshots
searching used packs...
collecting packs for deletion and repacking
[0:04] 100.00% 46722 / 46722 packs processed
to repack: 0 blobs / 0 B
this removes: 0 blobs / 0 B
to delete: 0 blobs / 0 B
total prune: 0 blobs / 0 B
remaining: 889547 blobs / 916.972 GiB
unused size after prune: 105.905 GiB (11.55% of remaining size)
done
(same output for --max-unused 100G
and 95G, etc etc )