fix gc exceeding limits

This commit is contained in:
Martin Sekera 2020-09-01 12:22:57 +02:00
parent ad19226d02
commit cd2458b830
2 changed files with 3 additions and 4 deletions

6
btv
View file

@ -348,9 +348,9 @@ def do_create(args):
else: else:
print("!!! no previous Rank 2 snapshot, please create one using btv stream") print("!!! no previous Rank 2 snapshot, please create one using btv stream")
snapshot.rank = 1 snapshot.rank = 1
## garbage collection ## garbage collection
do_gc() do_gc()
## save all snapshot metadata ## save all snapshot metadata
snapshot.dump() snapshot.dump()

View file

@ -30,7 +30,6 @@ dir = /mnt/pool/subvol/_backup
[gc] [gc]
# How many snapshots of each Rank to keep around. # How many snapshots of each Rank to keep around.
# Note: pruning is only performed when a new Rank 2 snapshot is attempted.
# Default values are 25, 36, and 42, i.e. 5 hours for Rank 0, 2 days for Rank 1, # Default values are 25, 36, and 42, i.e. 5 hours for Rank 0, 2 days for Rank 1,
# and a week for Rank 2. # and a week for Rank 2.
rank_0_count=25 rank_0_count=25