forked from third-party-mirrors/zfs_autobackup
fixes
This commit is contained in:
parent
8baee52ab1
commit
f2a3221911
@ -52,7 +52,7 @@ class ZfsAuto(object):
|
|||||||
self.verbose(self.HEADER)
|
self.verbose(self.HEADER)
|
||||||
|
|
||||||
if args.backup_name == None:
|
if args.backup_name == None:
|
||||||
self.__parser.print_usage()
|
parser.print_usage()
|
||||||
self.log.error("Please specify BACKUP-NAME")
|
self.log.error("Please specify BACKUP-NAME")
|
||||||
sys.exit(255)
|
sys.exit(255)
|
||||||
|
|
||||||
|
@ -42,13 +42,13 @@ class ZfsAutobackup(ZfsAuto):
|
|||||||
help='Run COMMAND before snapshotting (can be used multiple times.')
|
help='Run COMMAND before snapshotting (can be used multiple times.')
|
||||||
group.add_argument('--post-snapshot-cmd', metavar="COMMAND", default=[], action='append',
|
group.add_argument('--post-snapshot-cmd', metavar="COMMAND", default=[], action='append',
|
||||||
help='Run COMMAND after snapshotting (can be used multiple times.')
|
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,
|
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)')
|
'default)s)')
|
||||||
group.add_argument('--allow-empty', action='store_true',
|
group.add_argument('--allow-empty', action='store_true',
|
||||||
help='If nothing has changed, still create empty snapshots. (Faster. Same as --min-change=0)')
|
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",
|
group.add_argument('--snapshot-format', metavar='FORMAT', default="{}-%Y%m%d%H%M%S",
|
||||||
help='ZFS Snapshot string format. Default: %(default)s')
|
help='ZFS Snapshot string format. Default: %(default)s')
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user