This commit is contained in:
Edwin Eefting 2019-10-19 20:30:32 +02:00
parent 5cb98589bf
commit 71f23fede1

View File

@ -21,12 +21,14 @@ class Log:
"""magic to make our log messages ident and more clear""" """magic to make our log messages ident and more clear"""
str="" str=""
count=0 count=0
changed=False
for title in titles: for title in titles:
if len(self.titles)>count and self.titles[count]==title: if not changed and len(self.titles)>count and self.titles[count]==title:
str=str+ ( " " * len(title)) str=str+ ( " " * len(title))+ " "
else: else:
str=str+title str=str+title+": "
str=str+": " changed=True
# str=str+": "
count=count+1 count=count+1
str=str+txt str=str+txt
@ -377,7 +379,7 @@ class ZfsAutobackup:
def __init__(self): def __init__(self):
parser = argparse.ArgumentParser( 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.') 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-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.') parser.add_argument('--ssh-target', default=None, help='Target host to push backup to. (user@hostname) Default %(default)s.')