FeaturesData & Portability

Every save keeps the version it replaced

A history for every record, on by default. Overwrite a paragraph or delete the wrong object and the previous state is one command away — and restoring it is never a one-way door.

Standard Included in Standard and Pro

Settings → Backups with Keep Object History switched on, 10 snapshots per object and a maximum age of 30 days, the defaults every install starts with.
Settings → Backups with Keep Object History switched on, 10 snapshots per object and a maximum age of 30 days, the defaults every install starts with.

Every save keeps the version it replaced and every delete keeps the final state, so a paragraph a client overwrote, or a record someone deleted, is one command away. There is nothing to set up: history starts with the next save.

What is kept

  • Records, not files. It is a record history, not a site backup: only the object's data, never its uploaded images or files, so a snapshot is the size of the record's JSON.
  • Inside tcms-data. Snapshots live beside the content they protect, so they survive application updates and travel with any backup you already take.
  • The ten newest per object, none older than 30 days. Count alone would let one busy afternoon push out last week's version, the one you actually wanted; age alone would let an untouched record hold a snapshot forever. Tune both, or switch history off, under Settings → Backups.
  • No duplicates. Identical consecutive saves don't stack, and bulk imports write no snapshots at all.

Restoring, on the command line

  • List, then restore. tcms backup:list shows an object's snapshots and tcms backup:restore puts one back.
  • A restore is a save. It goes through the same path the admin uses, so the collection index rebuilds and every listener fires, and the version it overwrote becomes the newest snapshot. Undoing a restore is another restore.
  • Deleted objects too. They come back the same way, though any files they referenced are only there if they were never removed from disk.

Sync shares the same history: when tcms push overwrites a schema, collection or object, the file it replaced lands in the same place.

In practice

What it looks like on the command line

shell
# See what's kept for one object
tcms backup:list blog my-post

# Put the newest snapshot back
tcms backup:restore blog my-post --latest

# Or a specific one, non-interactively
tcms backup:restore blog my-post my-post-20260919-091500.json --force

Both commands take --json for scripts. The first column of backup:list is what backup:restore takes.

At a glance

What you get

Nothing to turn on
History starts with the first save after updating. Each save keeps the state it replaced; each delete keeps the last state the record had.
Small by design
Record data only, never uploads. The ten newest snapshots per object, nothing older than 30 days, both adjustable under Settings → Backups.
A restore is a save
It runs through the admin's own save path, re-indexes the collection, fires listeners and keeps what it replaced, so it can always be undone.
Deleted is not gone
The final state of a deleted object is kept. backup:list tells you the object is gone, and backup:restore brings it back.

Undo history

Common questions

Is there a restore button in the admin?

No. Snapshots are listed and restored with tcms backup:list and tcms backup:restore, and both take --json for scripts. The admin holds the settings: how many snapshots to keep, for how long, or history switched off entirely.

Does this replace my backups?

No. It is a history of records, not of files: uploaded images and files are never copied, which is what keeps it small. Keep backing up tcms-data with your host's tools; the snapshots live inside it, so they come along.

Can I keep more history on a busy site?

Yes. Raise Keep under Settings → Backups, or set backups.keep and backups.maxAgeDays in config/tcms.php, which wins over the admin and suits installs that share one data folder. A max age of 0 turns the age rule off.

Try it on a site of your own.

45 days, every Pro feature, no credit card. Build it, hand it to a client, and see what they can and can’t touch.