backup_databases

Documentation for eth_defi.vault.duckdb_backup.backup_databases function.

backup_databases(client, bucket, registry, now=None, maintenance_id=None)

Back up due, exclusively opened databases once per two days at most.

The gate precedes hashing, snapshotting, upload and compatibility copy. Snapshot keys are immutable. Unchanged due databases update the check receipt without transferring bytes. Errors are observable and throttled too; other registered databases are attempted independently. No local file is deleted.

Parameters
Returns

Per-database missing, deferred, unchanged, uploaded or failed.

Return type

dict[str, str]