This commit is contained in:
Edwin Eefting 2022-01-17 22:34:18 +01:00
parent 8baee52ab1
commit f2a3221911
2 changed files with 4 additions and 4 deletions

View File

@ -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)

View File

@ -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')