From f2a3221911fe495f8da3bb84b7101c3124a45ebc Mon Sep 17 00:00:00 2001 From: Edwin Eefting Date: Mon, 17 Jan 2022 22:34:18 +0100 Subject: [PATCH] fixes --- zfs_autobackup/ZfsAuto.py | 2 +- zfs_autobackup/ZfsAutobackup.py | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/zfs_autobackup/ZfsAuto.py b/zfs_autobackup/ZfsAuto.py index bc678dc..e374552 100644 --- a/zfs_autobackup/ZfsAuto.py +++ b/zfs_autobackup/ZfsAuto.py @@ -52,7 +52,7 @@ class ZfsAuto(object): self.verbose(self.HEADER) if args.backup_name == None: - self.__parser.print_usage() + parser.print_usage() self.log.error("Please specify BACKUP-NAME") sys.exit(255) diff --git a/zfs_autobackup/ZfsAutobackup.py b/zfs_autobackup/ZfsAutobackup.py index e23726f..9a669de 100644 --- a/zfs_autobackup/ZfsAutobackup.py +++ b/zfs_autobackup/ZfsAutobackup.py @@ -42,13 +42,13 @@ class ZfsAutobackup(ZfsAuto): help='Run COMMAND before snapshotting (can be used multiple times.') group.add_argument('--post-snapshot-cmd', metavar="COMMAND", default=[], action='append', help='Run COMMAND after snapshotting (can be used multiple times.') - group.add_argument('--other-snapshots', action='store_true', - help='Send over other snapshots as well, not just the ones created by this tool.') group.add_argument('--min-change', metavar='BYTES', type=int, default=1, - help='Number of bytes written after which we consider a dataset changed (default %(' + help='Only create snapshot if enough bytes are changed. (default %(' 'default)s)') group.add_argument('--allow-empty', action='store_true', help='If nothing has changed, still create empty snapshots. (Faster. Same as --min-change=0)') + group.add_argument('--other-snapshots', action='store_true', + help='Send over other snapshots as well, not just the ones created by this tool.') group.add_argument('--snapshot-format', metavar='FORMAT', default="{}-%Y%m%d%H%M%S", help='ZFS Snapshot string format. Default: %(default)s')