From e2125a77358406a357c9a028074b9c9d1b700ec9 Mon Sep 17 00:00:00 2001 From: Mathieu Benoit Date: Wed, 17 Dec 2025 01:11:07 -0500 Subject: [PATCH] [IMP] script database restore: support neutralize --- script/database/db_restore.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/script/database/db_restore.py b/script/database/db_restore.py index e6a0bd0..5b093c8 100755 --- a/script/database/db_restore.py +++ b/script/database/db_restore.py @@ -60,6 +60,11 @@ SUGGESTION action="store_true", help="Will only drop database if exist.", ) + parser.add_argument( + "--neutralize", + action="store_true", + help="Will disable all cron.", + ) args = parser.parse_args() return args @@ -163,6 +168,8 @@ def main(): f"{arg_base} --clone --from_database" f" {cache_database} --database {config.database}" ) + if config.neutralize: + arg += " --neutralize" print(arg) out = check_output(arg.split(" ")).decode() print(out)