Editorial illustration; the revision history and editorial labels are representative, not a live Drupal administration screen.
When someone accidentally overwrites an important Drupal page, the knee-jerk reaction is often to copy old text from a Google Doc and paste it back into the live node, or worse, ask a developer to restore a database dump. Pasting over the node destroys the audit trail of what went wrong, while a database restore wipes out every other edit made across the site since the last snapshot.
A proper rollback in Drupal is a controlled correction: find the exact revision before the mistake, diff it against the current version, restore it as a new forward revision, and verify both the moderation state and cached public output.
Revisions are an audit trail, not a backup
Drupal tracks entity revisions (node_revision, node_field_revision) per content type when “Create new revision” is enabled. That gives you field-level history for nodes, and often paragraphs or blocks, depending on your setup.
However, revisions do not replace full database and file backups. Reverting a node revision will not undelete a file removed from sites/default/files/, revert a Taxonomy term renamed by another editor, or undo a configuration change exported in config/sync. Use revisions for editorial mistakes on content; use database/filesystem backups and Git for deleted assets, config regressions, or broken deployments.
Also keep indexing in mind: if your site relies on Search API, a rollback updates the entity, which means your search index may need a re-index pass before search results reflect the restored text. See the Drupal Search API design guide for how entity saves interact with index queues.
Pinpoint the mistake before touching anything
Before clicking Revert on an old revision, write down in one sentence what actually broke:
- A pricing table or deadline date was overwritten.
- A paragraph or media reference was removed.
- An editor edited the wrong language translation.
- A moderation transition published an unfinished draft.
If an editor made a typo on Tuesday, fixed it on Wednesday, and added an approved speaker bio on Thursday, reverting blindly to Monday’s revision will erase Thursday’s valid bio. In that case, you do not want a full entity revert—you want to copy the single correct field value from Monday’s revision into a new revision on top of Thursday’s version.
Inspect the history and diff the fields
Open the node’s Revisions tab and read the author, timestamp, and revision log messages. Never assume the second-from-top revision is safe just because it says “Updated.”
If your site uses the contributed Diff module, use the radio buttons to compare the candidate revision against the current live revision side by side. Look past the Body field:
- Check structured fields (dates, prices, CTA URLs, taxonomy terms).
- Check
Entity Reference/Mediafields—a reverted revision might point to a Media item that was unpublished or deleted yesterday. - Check the language/translation tab so you are restoring the right translation (
envsms) rather than overwriting another language.
Write a brief note for yourself or your team before reverting, such as: “Restoring rev 412 (14:20) for the approved registration deadline; will re-add the updated venue map from rev 415.”
Restore as a new revision and respect Content Moderation
Using Drupal’s Revert action on a revision does not erase the bad revision—it copies the chosen older revision forward as a brand-new revision at the top of the stack. Always add a clear Revision log message explaining why the rollback happened (for example, Reverted to rev 412 to restore correct event date; ref ticket #482).
If Content Moderation is enabled, remember that restoring a revision and publishing it are two separate steps:
- Reverting an older revision may place the new revision into
DraftorNeeds Reviewrather thanPublished, depending on your workflow configuration and user permissions. - The editor who spots the mistake might have permission to create a draft correction, while a senior editor must approve the transition to
Published. - Never bypass workflow permissions by editing database tables directly; it breaks cache invalidation and leaves entity revision tables out of sync.
Verify the live page as an anonymous visitor
Once the corrected revision is published, do not stop after checking it while logged in as uid 1 or an administrator. Logged-in users bypass Drupal’s Internal Page Cache and see different cache contexts (user.roles, admin toolbar, unpublished entity previews).
Open an incognito browser window and verify:
- The corrected fields and surrounding content (which should not have been lost) render properly.
- Referenced images, PDFs, and embedded media load with
200status codes. - All language variants still point to the right translations.
- Search listings, Views blocks, and RSS feeds show the updated content.
If the page looks right to editors but stale to anonymous visitors, check your cache tags and reverse proxy invalidation (Varnish or Cloudflare). If output varies by role or route, review Drupal cache contexts for personalised output—and if needed, clear caches cleanly with drush cr or targeted cache-tag invalidation rather than guessing.
When to stop rolling back nodes
If you discover that ten different pages all have broken layouts or missing fields right after a code release, stop reverting individual nodes. That is a deployment or database migration bug, not an editorial error. Pause editing, alert the engineering team, and handle it through your deployment rollback procedure instead.
Treating Drupal revisions as an evidence log—comparing diffs, writing clear log messages, respecting moderation states, and verifying as a logged-out visitor—turns a stressful content mistake into a routine five-minute fix.