jobflow_remote.cli.backup module#

jobflow_remote.cli.backup.create(backup_dir: ~typing.Annotated[str, <typer.models.ArgumentInfo object at 0x7f050df84690>] = '.', compress: ~typing.Annotated[bool, <typer.models.OptionInfo object at 0x7f050df84cd0>] = False, mongo_path: ~typing.Annotated[str | None, <typer.models.OptionInfo object at 0x7f050df86d50>] = None, python: ~typing.Annotated[bool, <typer.models.OptionInfo object at 0x7f050df86e10>] = 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: ~typing.Annotated[str, <typer.models.ArgumentInfo object at 0x7f050df87050>] = '.', mongo_path: ~typing.Annotated[str | None, <typer.models.OptionInfo object at 0x7f050df871d0>] = None, python: ~typing.Annotated[bool, <typer.models.OptionInfo object at 0x7f050df87290>] = False) None[source]#

Recreate the queue database from a previous backup using either mongorestore or a python implementation.