From cd2458b8303d37c66347e3e9f3cf3a592f03483c Mon Sep 17 00:00:00 2001 From: Martin Sekera Date: Tue, 1 Sep 2020 12:22:57 +0200 Subject: [PATCH] fix gc exceeding limits --- btv | 6 +++--- cfg/config.ini | 1 - 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/btv b/btv index 99549ed..da0ad2f 100755 --- a/btv +++ b/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() diff --git a/cfg/config.ini b/cfg/config.ini index f5b72b0..cb00390 100644 --- a/cfg/config.ini +++ b/cfg/config.ini @@ -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