summaryrefslogtreecommitdiff
path: root/lib/byteback
diff options
context:
space:
mode:
authorccottam <chris.cottam@bytemark.co.uk>2018-04-03 12:58:50 +0100
committerccottam <chris.cottam@bytemark.co.uk>2018-04-03 12:58:50 +0100
commit9603062b66da3af29c1ec6d764b7101e69c5dd2d (patch)
tree4552398f5125edf55675d28127dbb8985b9064da /lib/byteback
parent6bba9094a73bb96e331c8f2d93604e6093aa4046 (diff)
adding the --commit-after flag to the snapshot removal
Diffstat (limited to 'lib/byteback')
-rw-r--r--lib/byteback/backup_directory.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/byteback/backup_directory.rb b/lib/byteback/backup_directory.rb
index 01871d3..37b8112 100644
--- a/lib/byteback/backup_directory.rb
+++ b/lib/byteback/backup_directory.rb
@@ -120,7 +120,7 @@ module Byteback
end
def delete!
- system_no_error("#{btrfs_bin} subvolume delete #{path}")
+ system_no_error("#{btrfs_bin} subvolume delete --commit-after #{path}")
end
# Returns the size of the given snapshot (runs du, may be slow)