Backup and restore
On this page
Only the installation owner can export or restore a backup. Archives contain personal tenancy and property records: keep them private and store them somewhere separate from the running installation.
Download a backup#
Open Data & access, then select Download installation backup (.rer). The archive includes product tables, rent records, photographs, approvals, original import bytes and import journals.
Sign-in sessions, credentials, private configuration and development outbox messages are excluded. A backup does not replace preserving your installation's source and deployment configuration securely.
For a command-line export, run from the installation checkout:
rer export --output exports/terrace.rer
Restore in the browser#
Start a separate empty installation with the same product schema and finish its owner setup. From your existing checkout, use a new directory:
rer dev --stop rer dev just-every/run-terrace --dir ../run-terrace-restoreOpen the new installation's private
RER_OPENlink and finish owner setup without adding product records. The original checkout and data stay separate. Ifreris not on PATH, use"$HOME/.local/bin/rer"for each command. The clone starts from the repository's current main; for an older backup, use a destination running the compatible source/schema before restoring.For Cloudflare, use a separate checkout and RER installation with its own deployment state and distinct Worker and D1 resource identities. Follow the deployment instructions with your own credentials, deploy and finish its owner setup before restoring. Do not use the managed seed deployment or reuse the source installation's resources; Cloudflare provisioning needs the account owner.
Open Data & access, then Restore an archive into this empty installation.
Choose the Backup archive. Browser uploads accept archives up to 20 MB.
Prefer a backup made after the latest erasure. If considering an older archive, choose the later backup from the same source as Later backup / erasure journal. When the journal identifies erased records in that archive, the entire restore is refused: restore the newer backup instead. The journal does not remove records from an older archive and restore the rest.
Type
RESTOREand select Restore archive.Check the restored tenancies, rent entries, photographs and import journals.
Restore preserves the destination owner and current sign-in. It refuses a nonempty product destination, corrupt archives and data blocked by a supplied later erasure journal. The archive does not bring the source installation's sessions or credentials into the destination.
Restore with the command line#
Use the CLI for archives larger than the browser limit. In an empty destination with the same schema:
rer import --input /absolute/path/terrace.rer --yes
When the source has since erased a tenancy, provide its later archive:
rer import --input /absolute/path/old.rer --journal /absolute/path/later.rer --yes
Keep erasure decisions with your backups#
After erasing a tenancy, download a new backup. Use that newer backup when restoring. If an older archive is being considered, supply the later archive as the erasure journal. When its fence blocks the old data, restore a backup made after the erasure.
An offline old archive cannot know that a tenancy was erased later. Supplying the later journal carries that decision to the new installation. Erasure in Terrace does not delete copies of archives you have stored elsewhere; manage those copies under your own retention process.
rer reset --yes removes local data and settings. Export anything you need to keep before a deliberate reset. Do not reset an existing installation merely to make it an empty restore destination.
Readable export#
Download readable export (.zip) under Backup and restore gives the same records in a form you can open without Terrace: one CSV per table, every photograph as its original file (its SHA-256 is in the CSV cell and in manifest.json), and a README listing what to reconnect after a restore (mail delivery, people and their roles, authenticators, any identity provider). Sessions, operator accounts and sign-in secrets are never exported. Restore from the .rer backup, not from the readable export.