Recovery
Rollback
Binary rollback is safe only when the older release supports the current schema. When a migration has crossed that boundary, restore the matching pre-upgrade archive instead.
Binary-only rollback
curl -fsSL https://trestle.dev/update.sh | sh -s -- --rollback- Stop the failed release.
- Confirm the older version accepts the current schema.
- Restore the retained executable and start once.
- Verify version, readiness and critical workflows.
Data rollback
- Stop Trestle and preserve the failed data directory for investigation.
- Run restore preflight against the pre-upgrade archive.
- Restore offline into a new owner-only directory.
- Start the matching older binary against that directory.
Never improvise SQLite rollback
Do not copy only trestle.db from a live WAL deployment or mix a database from one backup with local files from another.