Add backup logic, fix logic

This commit is contained in:
oitsjustjose 2021-06-10 21:35:33 -05:00
commit e07a6d1743
2 changed files with 20 additions and 33 deletions

View file

@ -107,6 +107,14 @@ def _create(parser: argparse.ArgumentParser):
required=False,
)
optional.add_argument(
"-b",
"--backup",
help="Enable backups every 30 minutes to the location provided. Example: -b './mc-backups'",
default=None,
required=False,
)
for env in SERVER_ENVS.keys():
optional.add_argument(
f"--{env}",