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