changement du path btrfs

This commit is contained in:
Vincent MAUGER
2020-11-20 14:13:25 +01:00
committed by Denis Cardon
parent 26c45f3fe6
commit 82ca9dfa35
3 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -778,7 +778,7 @@ class backup_generic:
self.logger.info('[%s] removing directory "%s"',self.backup_name,oldbackup_location)
if not self.dry_run:
if self.type =="rsync+btrfs+ssh" or self.type == "rsync+btrfs":
cmd = "/sbin/btrfs subvolume delete %s"%oldbackup_location.encode('ascii')
cmd = "/bin/btrfs subvolume delete %s"%oldbackup_location.encode('ascii')
process = subprocess.Popen(cmd, shell=True, stdout=subprocess.PIPE, stderr=subprocess.STDOUT, close_fds=True)
log = monitor_stdout(process,'',self)
returncode = process.returncode