testing arguments.
This commit is contained in:
14
main.py
14
main.py
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user