diff --git a/zfs_autobackup b/zfs_autobackup index c2fc7bc..6897f57 100755 --- a/zfs_autobackup +++ b/zfs_autobackup @@ -21,12 +21,14 @@ class Log: """magic to make our log messages ident and more clear""" str="" count=0 + changed=False for title in titles: - if len(self.titles)>count and self.titles[count]==title: - str=str+ ( " " * len(title)) + if not changed and len(self.titles)>count and self.titles[count]==title: + str=str+ ( " " * len(title))+ " " else: - str=str+title - str=str+": " + str=str+title+": " + changed=True + # str=str+": " count=count+1 str=str+txt @@ -377,7 +379,7 @@ class ZfsAutobackup: def __init__(self): parser = argparse.ArgumentParser( - description='ZFS autobackup v2.4', + description='ZFS autobackup v3.0', epilog='When a filesystem fails, zfs_backup will continue and report the number of failures at that end. Also the exit code will indicate the number of failures.') parser.add_argument('--ssh-source', default=None, help='Source host to get backup from. (user@hostname) Default %(default)s.') parser.add_argument('--ssh-target', default=None, help='Target host to push backup to. (user@hostname) Default %(default)s.')