jobflow_remote.cli.backup module#

jobflow_remote.cli.backup.create(backup_dir: ~typing.Annotated[str, <typer.models.ArgumentInfo object at 0x7fc04d7a3610>] = '.', compress: ~typing.Annotated[bool, <typer.models.OptionInfo object at 0x7fc04d7a32d0>] = False, mongo_path: ~typing.Annotated[str | None, <typer.models.OptionInfo object at 0x7fc04d7a31d0>] = None, python: ~typing.Annotated[bool, <typer.models.OptionInfo object at 0x7fc04d7a3890>] = 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 0x7fc04d7a3ad0>] = '.', mongo_path: ~typing.Annotated[str | None, <typer.models.OptionInfo object at 0x7fc04d7a3c50>] = None, python: ~typing.Annotated[bool, <typer.models.OptionInfo object at 0x7fc04d7a3d50>] = False) None[source]#

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