From da05580c7930e2a7e50e39c224c48b6f80e20a2c Mon Sep 17 00:00:00 2001 From: Chris Cottam Date: Tue, 3 Apr 2018 18:12:51 +0100 Subject: adding subvolume sync --- bin/byteback-prune | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/byteback-prune b/bin/byteback-prune index 2acee8a..ddb06b4 100755 --- a/bin/byteback-prune +++ b/bin/byteback-prune @@ -77,7 +77,7 @@ end # Check whether we should still be pruning # -@free = @df_history.list.last.percent_free +@free = BackupDirectory.free PRUNING_FLAG = "#{ENV['HOME']}/.byteback.pruning" if @do_prune_force @@ -138,4 +138,4 @@ if snapshots.empty? end info("Deleting #{snapshots.last.path}") -log_system("#{btrfs_bin} subvolume delete --commit-after #{snapshots.last.path}") +log_system("#{btrfs_bin} subvolume delete --commit-after #{snapshots.last.path} ; #{btrfs_bin} subvolume sync -n 10 #{ENV['HOME']}/ ") -- cgit v1.2.1