Skip to content

Commit

Permalink
Using option -p and -l inc has also created an checkpoint
Browse files Browse the repository at this point in the history
but did not save any data for it. As such, a user can
break its backup chain by trying to estimate the backup
size.

Enforce backup level copy if option -p is set, so no
checkpoint is created to ensure an consistent backup
chain.
  • Loading branch information
abbbi committed Mar 30, 2021
1 parent 43dfc62 commit f0590df
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion libvirtnbdbackup/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__= "0.11"
__version__= "0.12"
6 changes: 5 additions & 1 deletion virtnbdbackup
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,10 @@ def main():
logging.error("Backup format raw does not support incremental backup")
sys.exit(1)

if args.printonly is True:
logging.info('Printing only extend information: enforce level copy')
args.level = "copy"

if not args.output == "-" and not args.startonly and not args.killonly:
if not lib.targetIsEmpty(args):
logging.error("Target directory must empty for full or copy backup.")
Expand Down Expand Up @@ -197,7 +201,7 @@ def main():
logging.error("No prior checkpoints found, execute full backup first")
sys.exit(1)

logging.info("Using checkpoint name %s", checkpointName)
logging.info("Using checkpoint name: %s", checkpointName)

logging.info('Temporary scratch file target directory: %s', args.scratchdir)

Expand Down

0 comments on commit f0590df

Please sign in to comment.