testing arguments.

This commit is contained in:
2023-11-12 15:22:55 +01:00
parent c33efdfd8f
commit e248b359fa

14
main.py
View File

@@ -39,13 +39,11 @@ def arguments_parser():
'only matching volumes and binds will be backed up.')
args = parser.parse_args()
print(args)
print(vars(args))
bindcludepattern = None
bindexcludepattern = None
configfile = None
composefile = "/root/compose/core/docker-compose.yml"
sshfolder = "/root/.ssh"
bindincludepattern = args.bindinclude
bindexcludepattern = args.bindexclude
configfile = args.config
composefile = args.compose
sshfolder = args.sshfolder
remotehost = None
repository = None
passwordfile = None
@@ -248,7 +246,7 @@ def volume_backup(itemtobackup: str) -> bool:
if __name__ == '__main__':
dockerhost = docker.from_env()
bindcludepattern = None
bindincludepattern = None
bindexcludepattern = None
configfile = None
composefile = "/root/compose/core/docker-compose.yml"