diff options
author | Matthew Bloch <matthew@bytemark.co.uk> | 2014-12-04 18:39:47 +0000 |
---|---|---|
committer | Matthew Bloch <matthew@bytemark.co.uk> | 2014-12-04 18:39:47 +0000 |
commit | 54849eb03280b7c859905b3ca190fce3b931e631 (patch) | |
tree | fb9b308b6fe9e7b1887f47bd70fe9b963f5af146 /lib/byteback/backup_directory.rb | |
parent | fcf00ad61a60c9e99a7d45380803f0dbf0b858f5 (diff) |
Replaced pathless btrfs invocation with /sbin/btrfs (as we're no longer root).
Diffstat (limited to 'lib/byteback/backup_directory.rb')
-rw-r--r-- | lib/byteback/backup_directory.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/byteback/backup_directory.rb b/lib/byteback/backup_directory.rb index fc11840..6404cd8 100644 --- a/lib/byteback/backup_directory.rb +++ b/lib/byteback/backup_directory.rb @@ -53,11 +53,11 @@ module Byteback end def create!(from) - system_no_error("btrfs subvolume snapshot #{from} #{path}") + system_no_error("/sbin/btrfs subvolume snapshot #{from} #{path}") end def delete! - system_no_error("btrfs subvolume delete #{path}") + system_no_error("/sbin/btrfs subvolume delete #{path}") end # Returns the size of the given snapshot (runs du, may be slow) |