fix gc exceeding limits
This commit is contained in:
parent
ad19226d02
commit
cd2458b830
2 changed files with 3 additions and 4 deletions
6
btv
6
btv
|
@ -348,9 +348,9 @@ def do_create(args):
|
|||
else:
|
||||
print("!!! no previous Rank 2 snapshot, please create one using btv stream")
|
||||
snapshot.rank = 1
|
||||
|
||||
## garbage collection
|
||||
do_gc()
|
||||
|
||||
## garbage collection
|
||||
do_gc()
|
||||
|
||||
## save all snapshot metadata
|
||||
snapshot.dump()
|
||||
|
|
|
@ -30,7 +30,6 @@ dir = /mnt/pool/subvol/_backup
|
|||
|
||||
[gc]
|
||||
# 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,
|
||||
# and a week for Rank 2.
|
||||
rank_0_count=25
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue