feat: add universal-db-restore, app migration contract, targets for kairo/tandoor/bookstack, and uptime kuma guide
This commit is contained in:
1 parent
a17afb4b13
commit
feb469d47b
10 files changed
+1079
-12
No files matched your search
+10
-1
@@ -1371,7 +1371,16 @@ def execute_recovery_command(mode, args, targets_cfg):
|
||||
cmd = _build_script_cmd(script, extra)
|
||||
else:
|
||||
custom_script = tcfg.get('restore_script')
|
||||
script = Path(custom_script) if custom_script and Path(custom_script).is_file() else (adapter_dir / f'{app_id}-restore')
|
||||
if custom_script and Path(custom_script).is_file():
|
||||
script = Path(custom_script)
|
||||
elif (adapter_dir / f'{app_id}-restore').is_file():
|
||||
script = adapter_dir / f'{app_id}-restore'
|
||||
else:
|
||||
candidates = [
|
||||
Path('/etc/backup-orchestrator/scripts/universal-db-restore'),
|
||||
Path(__file__).resolve().parent / 'scripts' / 'common' / 'universal-db-restore',
|
||||
]
|
||||
script = next((c for c in candidates if c.is_file()), adapter_dir / f'{app_id}-restore')
|
||||
extra = [
|
||||
'--target', target_name, '--dump', dump_path,
|
||||
'--result', str(result_file), '--sessions', args.sessions,
|
||||
|
||||
Reference in new issue
Block a user