# Changelog

What changed in each Litebackup release.

## 1.8.0

- **Upgrade everything together.** Servers, clients, and SDKs at 1.8.0 work only with each other and do not read a 1.6.0 server's data directory or bucket checkpoint, so set up 1.8.0 on a new server and join machines to it again.
- **Run behind your firewall.** `server run --url URL`, as the container image `ghcr.io/litebackup/server` runs it, works without internet access: it never contacts litebackup.com, sits behind your own proxy, signs people in with email and password, and runs under a license file you import ([guide](https://github.com/litebackup/sdk/blob/main/docs/litebackup-behind-firewall.md)).
- **Licenses that end never stop backups.** After a license's end date and a 14-day grace period, the server refuses only new databases; the console, the log, and `litebackup admin` commands warn from 30 days before, except on a plan that renews, which warns only once its end date passes.
- **No machine limit.** Plans limit only databases.
- **License commands.** `admin license show` and `server license show` print the license and the plan's use, `license import` imports a license file, and `server reset-password` sets a user's password on the server's host.
- **Changed.** A server given `--url` with no license yet answers client syncs and joins with 503 `license_required`; clients wait and try again.
- **Changed.** Retention policy settings are named for the versions they hold: the flags `--keep-all`, `--keep-hourly`, `--keep-daily`, and `--keep-monthly` of `server run` and the `policy` commands are `--every-version`, `--hourly-versions`, `--daily-versions`, and `--monthly-versions`, and the API fields `keep_all_millis`, `keep_hourly_millis`, `keep_daily_millis`, `keep_monthly_millis`, and `effective_keep_all_millis` are `every_version_millis`, `hourly_versions_millis`, `daily_versions_millis`, `monthly_versions_millis`, and `effective_every_version_millis`.

## 1.6.0

- **Upgrade everything together.** Servers, clients, and SDKs at 1.6.0 work only with each other and do not read a 1.5.0 server's data directory, so set up 1.6.0 on a new server and join machines to it again.
- **Monitoring page.** Admins see the server's throughput, requests, errors, replication and archive lag, and host load on the new Monitoring page in the console, with rates per minute, and the alerts its thresholds fired.
- **Databases page.** Folders show a `..` row and breadcrumbs from All databases, and admins see totals for the whole server and a chart of total databases at the top.
- **Changed.** A measure past its threshold now fires an alert, firing until the measure is back; the Monitoring page lists recent alerts.
- **Changed.** The failover event `refused` is `denied`: listen for `denied` in TypeScript, and pass `OnDenied` in Go, `on_denied` in Python and Ruby, and `onDenied` in PHP; Rust's `FailoverNotice::Refused` is `FailoverNotice::Denied`.
- **Changed.** The server counts requests answered with HTTP 429 and supports alerting on that count.

## 1.5.0

- **Upgrade everything together.** Servers, clients, and SDKs at 1.5.0 work only with each other and do not read a 1.4.0 server's data directory or bucket, so set up 1.5.0 on a new server with a new bucket and join machines to it again.
- **Deleted databases free server disk.** `admin database delete` frees the server's disk once the bucket holds the latest version, and `admin database undelete` brings the database back from the bucket until its purge date.
- **Delete and purge many databases.** `admin database delete` and `admin database purge` take `--id` for one exact database and `--prefix` for every database under a prefix, which they show and ask about first unless you pass `--yes`.
- **Changed.** `restore` and `admin database purge` wait and try again when the server asks them to, and a server that is limiting requests now reports `rate_limited`.
- **Changed.** A restore of a damaged version reports `integrity` and points to an earlier version.
- **Changed.** A conflict suggests restoring the server's copy to a new file and comparing before `acquire --discard-local`.
- **Changed.** `status` shows how long each database has been syncing, retrying, or pending, and `admin status` shows the disk deleted databases still hold.
- **Changed.** API and SDK fields are named for what they hold: `last_error` is `error`, `last_error_time` is `failed`, `first_unsynced_change_time` is `syncing`, `acquired_time` is `lock_acquired`, an API key's `last_two` and `last_used` are `ending` and `used`, and a drain's `failed` and `released` are `failures` and `released_count`.
- **Changed.** `--prefix` accepts a trailing `/`.

## 1.4.0

- **Changed.** The server sizes its memory use to its machine and keeps fewer databases open on small ones; `--maximum-open-copies` and `GOMEMLIMIT` still override it.
- **Fixed.** Databases stay in sync when the server restarts during an upload.
- **Fixed.** Backups keep syncing when many databases change at once.
- **Fixed.** Uploads recover from dropped connections.

## 1.3.0

- **Charts in the console.** The Databases page charts syncs, uploads, unarchived versions, bucket and replica lag, free disk, CPU, memory, and pressure over 1 hour to 30 days; a database's page charts its versions and size.
- **Load thresholds.** The server checks CPU, memory, pressure, free disk, late archives, replica lag, refused requests, and integrity errors against thresholds admins edit on the Settings page, and the Databases page lists open and recent breaches, kept a year.
- **New metrics.** `litebackup_syncs_total`, `litebackup_archive_bytes_total`, `litebackup_databases`, `litebackup_unarchived_versions`, `litebackup_late_archive_databases`, `litebackup_replica_lag_seconds`, `litebackup_cpu_usage_ratio`, `litebackup_memory_usage_ratio`, `litebackup_pressure_some_ratio`, and `litebackup_pressure_full_ratio`.
- **Replica lag.** A database's page shows its bucket lag and each replica's version, lag, and last poll.
- **Ruby, PHP, and Rust SDKs.** `gem install litebackup`, `composer require litebackup/sdk`, and `cargo add litebackup`.
- **Changed.** A database reads as backed up once the server holds its latest version; the bucket copy shows as a separate step, current, scheduled, or late.
- **Changed.** The slot pool gauge is `litebackup_pool_reserved_slots`; dashboards that read its old name need the new one.

## 1.2.0

- **Rate limits are per user.** A user's keys and machines share one limit.
- **New command.** `litebackup admin user set-limits` sets a user's limit.
- **Changed.** Rate settings on a user's own keys no longer apply.
- **Unchanged.** Keys the server owns and their machines keep their own limits.

## 1.1.0

- **First release.**
