mirror of
https://github.com/psy0rz/zfs_autobackup.git
synced 2025-04-11 22:40:01 +03:00
wip
This commit is contained in:
parent
5cb98589bf
commit
71f23fede1
@ -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.')
|
||||
|
Loading…
x
Reference in New Issue
Block a user