From b665526c73f9e59e0322f19843e9673efc2d8ef2 Mon Sep 17 00:00:00 2001 From: Vincent MAUGER Date: Thu, 11 Jun 2020 11:42:30 +0200 Subject: [PATCH] changement du path btrfs --- libtisbackup/backup_rsync_btrfs.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libtisbackup/backup_rsync_btrfs.py b/libtisbackup/backup_rsync_btrfs.py index 354d332..a978c6d 100644 --- a/libtisbackup/backup_rsync_btrfs.py +++ b/libtisbackup/backup_rsync_btrfs.py @@ -68,7 +68,7 @@ class backup_rsync_btrfs(backup_generic): dest_dir = os.path.join(self.backup_dir,'last_backup') if not os.path.isdir(dest_dir): if not self.dry_run: - cmd = "/sbin/btrfs subvolume create %s"%dest_dir + cmd = "/bin/btrfs subvolume create %s"%dest_dir process = subprocess.Popen(cmd, shell=True, stdout=subprocess.PIPE, stderr=subprocess.STDOUT, close_fds=True) log = monitor_stdout(process,'',self) returncode = process.returncode @@ -210,7 +210,7 @@ class backup_rsync_btrfs(backup_generic): self.logger.debug("[%s] snapshoting last_backup directory from %s to %s" ,self.backup_name,dest_dir,finaldest) if not os.path.isdir(finaldest): if not self.dry_run: - cmd = "/sbin/btrfs subvolume snapshot %s %s"%(dest_dir,finaldest) + cmd = "/bin/btrfs subvolume snapshot %s %s"%(dest_dir,finaldest) process = subprocess.Popen(cmd, shell=True, stdout=subprocess.PIPE, stderr=subprocess.STDOUT, close_fds=True) log = monitor_stdout(process,'',self) returncode = process.returncode