Page Versioning

Automad automatically maintains a page history by creating snapshots of your page settings and text content whenever you save changes. To preview and restore a previous version, open the More dropdown menu in the top right of the page settings and select Restore a previous version.

This opens a preview of the page as it looked at the selected revision. All available revisions are listed by date and time in the dropdown in the header, with the newest one first. Selecting a revision updates the preview, so you can compare versions before restoring anything. The preview is rendered with the current theme, and links and forms are disabled inside it.

To bring a version back, select it and click Restore. After you confirm, the page is restored in place, which means the selected revision replaces the current content of the page. The restored version is saved as a draft, so the public page only changes once you publish it.

Revision Retention

Automad doesn't keep every single save. Instead, it keeps the last saved version of each of the following periods. For each kind of period, the five most recent periods in which the page was changed are kept, and older revisions are removed automatically:

  • the last version of each five-minute period
  • the last version of each hour
  • the last version of each day
  • the last version of each month

Periods without changes don't count, so for a page that is edited rarely, the monthly revisions reach back much further than five months. Since the latest version usually is the last version of the current five minutes, hour, day and month at the same time, it is stored only once, and the list of revisions in the preview therefore typically contains fewer than 20 entries. Note that restoring a revision counts as a save as well, so it replaces the version that was saved last in the current period.

Search & Navigation Developer Guide