small changes
This commit is contained in:
parent
3db0116c79
commit
8232fa4adf
|
|
@ -29,7 +29,7 @@ def backup():
|
|||
log = Log(settings_list['log']['log_dir'])
|
||||
containers = Container.instantiate_containers(settings_list)
|
||||
|
||||
# If any container names where passed as parameters, do only backup them
|
||||
# If any container names were passed as parameters, do only backup them
|
||||
containers_wanted = {name: container for name, container in containers.items() if name in sys.argv}
|
||||
if containers_wanted:
|
||||
containers = containers_wanted
|
||||
|
|
@ -55,8 +55,7 @@ def backup():
|
|||
backup_status = False
|
||||
|
||||
# Log backup
|
||||
if not utils.no_log:
|
||||
if settings_list['log']['logging']:
|
||||
if not utils.no_log and settings_list['log']['logging']:
|
||||
if backup_status:
|
||||
log.log(F"Created a backup ; {container.name} ; {container.tar_gz_file_path} ; {result} MB")
|
||||
else:
|
||||
|
|
|
|||
Loading…
Reference in New Issue