INNER CODE UNIT · Python

restore_backup

stacklok/codegate · src/codegate/cli.py:458

def restore_backup(backup_path: Path, backup_name: str) -> None:
    """Restore the database from the specified backup."""
    try:
        restore_storage_backup(backup_path, backup_name)
        click.echo(f"Successfully restored the backup '{backup_name}' from {backup_path}.")
    except Exception as e:
        click.echo(f"Error restoring backup: {e}", err=True)
        sys.exit(1)


@cli.command()
@click.option(
    "--certs-out-dir",
    type=click.Path(exists=False, file_okay=False, path_type=Path),
    help="Directory path where the certificates are going to be generated.",
)
@click.option(
    "--ca-cert-name",

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…