jobflow_remote.cli.backup module#
- jobflow_remote.cli.backup.create(backup_dir: Annotated[str, <typer.models.ArgumentInfo object at 0x7fbc7931a7d0>]='.', compress: Annotated[bool, <typer.models.OptionInfo object at 0x7fbc7931a8d0>]=False, mongo_path: Annotated[str | None, <typer.models.OptionInfo object at 0x7fbc7931a990>]=None, python: Annotated[bool, <typer.models.OptionInfo object at 0x7fbc7931aa50>]=False) None[source]#
Create a backup of the queue database using either mongodump or a python implementation. The mongodump version is faster and stores metadata, but requires the mongodump executable and may not support all the connection options defined in the project configuration.
- jobflow_remote.cli.backup.restore(backup_dir: Annotated[str, <typer.models.ArgumentInfo object at 0x7fbc7931ab90>]='.', mongo_path: Annotated[str | None, <typer.models.OptionInfo object at 0x7fbc7931abd0>]=None, python: Annotated[bool, <typer.models.OptionInfo object at 0x7fbc7931ac50>]=False) None[source]#
Recreate the queue database from a previous backup using either mongorestore or a python implementation.