feat: add configurable GFS retention per orbit
This commit is contained in:
13
README.md
13
README.md
@@ -48,6 +48,19 @@ Restore a new filesystem or Restic outpost snapshot to a file such as `restore.t
|
||||
|
||||
Decay removes expired snapshots from Tessera's list. Run `tessera gc` periodically from the host or container with the same data directory and vault passphrase to let Restic reclaim their unreferenced chunks. Run it during a quiet period so Restic can acquire its repository locks. Legacy packs and Restic snapshots created outside Tessera's catalog require separate maintenance.
|
||||
|
||||
### Custom retention
|
||||
|
||||
Choose **Custom (GFS)** in an orbit's retention settings. Each count selects the newest snapshot in each of the most recent occupied UTC days, ISO weeks (Monday to Sunday), months, or years. Empty periods do not use up a count. A snapshot can satisfy more than one tier. Set a tier to zero to skip it and keep at least one tier above zero. Existing presets keep their original behavior.
|
||||
|
||||
To set 7 daily, 2 weekly, 6 monthly, and 3 yearly snapshots from the CLI:
|
||||
|
||||
```bash
|
||||
tessera orbit archive --path /srv/archive --keep-daily 7 --keep-weekly 2 --keep-monthly 6 --keep-yearly 3
|
||||
tessera retention <orbit-id> --keep-daily 7 --keep-weekly 2 --keep-monthly 6 --keep-yearly 3
|
||||
```
|
||||
|
||||
The API accepts `{"retention":{"keep_daily":7,"keep_weekly":2,"keep_monthly":6,"keep_yearly":3}}` as part of `POST /api/v1/orbits` or as the body of `PUT /api/v1/orbits/{id}/retention`. Omitted tiers default to zero. To switch back to a preset, send `{"decay_preset":"week-of-dailies"}` to the same `PUT` endpoint or use `tessera retention <orbit-id> --preset week-of-dailies`. Saving applies the policy after the next successful capture. The separate `tessera decay --preset` command still applies its selected preset across the vault.
|
||||
|
||||
### Incremental Wormhole transfers
|
||||
|
||||
Run [Rest Server](https://github.com/restic/rest-server#usage) with TLS, authentication, `--append-only`, and `--private-repos`. Point its storage at the hub's `vault/outposts` directory. Both processes need filesystem access to that directory. Give Rest Server access only to `outposts`, with a separate location for its TLS and authentication files.
|
||||
|
||||
Reference in New Issue
Block a user