Skip to content

Commit

Permalink
introduce versioning
Browse files Browse the repository at this point in the history
  • Loading branch information
abbbi committed Mar 29, 2021
1 parent 0c9b078 commit aaed01d
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 3 deletions.
2 changes: 1 addition & 1 deletion libvirtnbdbackup/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__= "0.6"
__version__= "0.7"
8 changes: 7 additions & 1 deletion virtnbdbackup
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand Down Expand Up @@ -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")
Expand Down
8 changes: 7 additions & 1 deletion virtnbdrestore
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down Expand Up @@ -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")
Expand Down

0 comments on commit aaed01d

Please sign in to comment.