aboutsummaryrefslogtreecommitdiff
path: root/handlers
diff options
context:
space:
mode:
authorMicah Anderson <micah@riseup.net>2010-10-31 16:44:43 -0400
committerMicah Anderson <micah@riseup.net>2010-10-31 16:44:43 -0400
commit84c2202ca35b6d9e739abe25e5612b06718774ee (patch)
tree3e36db0f3264400887a2261508c362d2ee54527a /handlers
parentb87d36489ba1f584e6cfe3fec54de49dc9d1a2a6 (diff)
parentab92883a63860b626bfc2faafd54a1544e1b8583 (diff)
downloadbackupninja-84c2202ca35b6d9e739abe25e5612b06718774ee.tar.gz
backupninja-84c2202ca35b6d9e739abe25e5612b06718774ee.tar.bz2
Merge branch '0.9.8.1' into debian
Diffstat (limited to 'handlers')
-rwxr-xr-xhandlers/sys.in7
1 files changed, 5 insertions, 2 deletions
diff --git a/handlers/sys.in b/handlers/sys.in
index a92663e..fcf3e31 100755
--- a/handlers/sys.in
+++ b/handlers/sys.in
@@ -649,8 +649,11 @@ function doLvmBackup () {
debug "$VGS --options vg_name --noheadings | @SED@ 's/^[ ]*//' | @SED@ 's/[ ]*$//' | tr '\n' ' '"
vgs=`$VGS --options vg_name --noheadings | @SED@ 's/^[ ]*//' | @SED@ 's/[ ]*$//' | tr '\n' ' '`
debug "Let's try to backup LVM metadata for detected volume groups: $vgs"
- debug "$VGCFGBACKUP --file \"${lvmdir}\"/\'%s\' $vgs"
- output=`$VGCFGBACKUP --file "${lvmdir}"/'%s' $vgs`
+ for vg in $vgs
+ do
+ debug "$VGCFGBACKUP --file \"${lvmdir}\"/\'%s\' $vg"
+ output=`$VGCFGBACKUP --file "${lvmdir}"/'%s' $vg`
+ done
exit_code=$?
debug $output
case $exit_code in