Permalink
Browse files

suppress snapshot temporary mountpoint in dry-run mode

  • Loading branch information...
1 parent cf1551b commit 20dff97308cd72f11d2df4b42c98a05e6e34e5ac @abg abg committed Jan 10, 2013
Showing with 2 additions and 2 deletions.
  1. +2 −2 plugins/holland.backup.mysql_lvm/holland/backup/mysql_lvm/plugin/raw/plugin.py
@@ -106,7 +106,7 @@ def estimate_backup_size(self):
def configspec(self):
"""INI Spec for the configuration values this plugin supports"""
return self.CONFIGSPEC
-
+
def backup(self):
"""Run a backup by running through a LVM snapshot against the device
the MySQL datadir resides on
@@ -130,7 +130,7 @@ def backup(self):
# create a snapshot manager
snapshot = build_snapshot(self.config['mysql-lvm'], volume,
- suppress_tmpdir=True)
+ suppress_tmpdir=self.dry_run)
# calculate where the datadirectory on the snapshot will be located
rpath = relpath(datadir, getmount(datadir))
snap_datadir = os.path.abspath(os.path.join(snapshot.mountpoint, rpath))

0 comments on commit 20dff97

Please sign in to comment.