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.')
|
'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"
|
||||||
|
|||||||
Reference in New Issue
Block a user