diff options
author | Chris Cottam <chris.cottam@bytemark.co.uk> | 2018-04-03 18:12:51 +0100 |
---|---|---|
committer | Chris Cottam <chris.cottam@bytemark.co.uk> | 2018-04-03 18:12:51 +0100 |
commit | da05580c7930e2a7e50e39c224c48b6f80e20a2c (patch) | |
tree | d6f2537efcc9166d6bdeb16fcace56b6424378ae | |
parent | 3eefcc9ccd7084ef59e4b5d08545593ace6f61d9 (diff) |
adding subvolume sync16-delete-settings-are-too-slow-for-a-busy-host
-rwxr-xr-x | bin/byteback-prune | 4 |
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']}/ ") |