Documentation

VLite 0.7.6 upgrade and rollback

VLite 0.7.6 adds two server features, both off by default: file compaction, which a super administrator can run from the dashboard, and cloud backups to Azure Blob Storage with an isolated, rekey-only restore.

The database format and binding-file schema are unchanged. No data migration is required. No benchmark campaign was run for this patch release; earlier measurements do not measure 0.7.6.

What is new

File compaction (experimental)

A single-file database keeps old pages after updates and deletes, so the file grows. File compaction writes a compact copy, checks it and switches the server to it. In the dashboard, open Administration → Backup & recovery → File compaction and choose Compact now, or turn on the daily automatic window (UTC, off by default). The same actions are available through /v1/admin/compaction for super administrators.

See API.md and running it safely.

Cloud backups to Azure Blob

A super administrator saves a policy with PUT /v1/admin/cloud-backup. The server then publishes verified backup sets of the database and a secret-free recovery bundle (tenants, account names and roles, the credential inventory) to two Blob containers, using the container app's managed identity. Each set is hashed end to end, read back before it is published and can be drilled (downloaded, restored to scratch and queried) without touching the live database. Retention is off by default and never removes the newest verified set, pinned sets or sets inside keep_sets (at least 3) or keep_days (at least 30).

Restore is rekey-only. POST .../sets/{id}/restore writes a new-lineage restore-*.vlite copy for the existing restore selection, and the offline vlite-server cloud-sets and vlite-server cloud-restore commands rebuild a database and admin directory on a new host. Restored accounts are disabled, a fresh super administrator is the only working sign-in, and credentials, sessions and webhooks must be issued again.

There is no dashboard card yet. See API.md and the Azure setup and restore steps.

Upgrade

Verify release checksums and back up the database, private bindings file and admin state. Stop the old server before starting 0.7.6; keep one writer per database file. Preserve existing durability, authentication, proxy and storage settings. There is no format conversion or binding-generation change for this upgrade.

Existing clients and the dashboard work unchanged, and both features stay off until a super administrator turns them on. Before enabling cloud backups, give the app a managed identity with Storage Blob Data Contributor on the two containers, and keep only server-written files in VLITE_ADMIN_DIR; a token or TLS file there makes runs answer 409 recovery_config_unrecognized.

When upgrading from 0.7.2 or earlier, also read the 0.7.3 compatibility guidance, especially before introducing read-only shared scopes.

Rollback

Stop 0.7.6 before starting 0.7.5. Do not roll back while a compaction job is running or the server reports recovery_required.

For rollback to 0.7.2 or earlier, follow the 0.7.3 rollback instructions.

Compatibility and known limits

View or edit this page on GitHub ↗