summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Cottam <chris.cottam@bytemark.co.uk>2018-04-03 18:12:51 +0100
committerChris Cottam <chris.cottam@bytemark.co.uk>2018-04-03 18:12:51 +0100
commitda05580c7930e2a7e50e39c224c48b6f80e20a2c (patch)
treed6f2537efcc9166d6bdeb16fcace56b6424378ae
parent3eefcc9ccd7084ef59e4b5d08545593ace6f61d9 (diff)
-rwxr-xr-xbin/byteback-prune4
1 files 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']}/ ")