diff options
author | ccottam <chris.cottam@bytemark.co.uk> | 2018-04-03 12:58:50 +0100 |
---|---|---|
committer | ccottam <chris.cottam@bytemark.co.uk> | 2018-04-03 12:58:50 +0100 |
commit | 9603062b66da3af29c1ec6d764b7101e69c5dd2d (patch) | |
tree | 4552398f5125edf55675d28127dbb8985b9064da | |
parent | 6bba9094a73bb96e331c8f2d93604e6093aa4046 (diff) |
adding the --commit-after flag to the snapshot removal
-rwxr-xr-x | bin/byteback-prune | 2 | ||||
-rw-r--r-- | lib/byteback/backup_directory.rb | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/bin/byteback-prune b/bin/byteback-prune index a0cd0fb..da0b72c 100755 --- a/bin/byteback-prune +++ b/bin/byteback-prune @@ -147,4 +147,4 @@ if snapshots.empty? end info("Deleting #{snapshots.last.path}") -log_system("#{btrfs_bin} subvolume delete #{snapshots.last.path}") +log_system("#{btrfs_bin} subvolume delete --commit-after #{snapshots.last.path}") 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) |