From 384bcd45871db73e73dc79c6a83ce82c4c3d4921 Mon Sep 17 00:00:00 2001 From: Daniel Berteaud Date: Mon, 23 Jun 2014 12:16:27 +0200 Subject: [PATCH] Another message skiped if livebackup isn't possible and offline is disabled --- virt-backup | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/virt-backup b/virt-backup index c73d5df..56b129b 100644 --- a/virt-backup +++ b/virt-backup @@ -418,7 +418,9 @@ sub prepare_backup{ push (@disks, {source => $source, target => $target, type => 'file'}); } } - print "Adding $source to the list of disks to be backed up\n" if ($opts{debug}); + if ($opts{debug} && ($opts{livebackup} || $opts{offline})){ + print "Adding $source to the list of disks to be backed up\n"; + } } }