diff --git a/libvirtnbdbackup/__init__.py b/libvirtnbdbackup/__init__.py index ce6f7601..c91368a1 100644 --- a/libvirtnbdbackup/__init__.py +++ b/libvirtnbdbackup/__init__.py @@ -1 +1 @@ -__version__= "0.6" +__version__= "0.7" diff --git a/virtnbdbackup b/virtnbdbackup index be9a6df3..15137e8c 100755 --- a/virtnbdbackup +++ b/virtnbdbackup @@ -17,6 +17,8 @@ import libvirtnbdbackup.sparsestream as sparsestream import libvirtnbdbackup.qemuhelper as qemuhelper import libvirtnbdbackup.libvirthelper as libvirthelper +from libvirtnbdbackup import __version__ + def handleSignal(disks, domObj, virtClient, log, signal, frame): log.error('Catched signal: %s' % signal) log.error('Cleanup: Stopping backup job') @@ -105,7 +107,11 @@ def main(): datefmt='%Y-%m-%d %H:%M:%S' ) - logger.info("Arguments: %s" % ' '.join(sys.argv)) + logger.info("Version: %s Arguments: %s" % ( + __version__, + ' '.join(sys.argv) + ) + ) if args.type == "raw" and args.level == "inc": logger.error("Backup format raw does not support incremental backup") diff --git a/virtnbdrestore b/virtnbdrestore index e59bb4e6..8803914e 100755 --- a/virtnbdrestore +++ b/virtnbdrestore @@ -15,6 +15,8 @@ import libvirtnbdbackup.libvirthelper as virtclient import libvirtnbdbackup.sparsestream as sparsestream import libvirtnbdbackup.qemuhelper as qemuhelper +from libvirtnbdbackup import __version__ + def main(): logging.getLogger("sh").setLevel(logging.WARNING) parser = argparse.ArgumentParser( @@ -57,7 +59,11 @@ def main(): datefmt='%Y-%m-%d %H:%M:%S' ) - logger.info("Arguments: %s" % ' '.join(sys.argv)) + logger.info("Version: %s Arguments: %s" % ( + __version__, + ' '.join(sys.argv) + ) + ) if not os.path.exists(args.input): logger.error("Backup set directory does not exist")