Restore from backup

Published

Updated

⏮️

Roll back.

Restore a fortrabbit environment from a backup in the dashboard after a broken update or a hack. The restore replaces files and database with the backup, and the current state is deleted.

Requirements

The environment needs the backup component and at least one backup.

Use cases

  • An update broke the site, and it should go back to a working state
  • The site was hacked

How to restore a backup

  1. Open the backups of the environment in the dashboard.
  2. Pick the backup to restore.
  3. Click restore, confirm, and wait until it is finished.

A restore takes a few minutes for most projects, and hours for very large ones. The environment stays online for most of that time, slower than usual, with a short downtime at the switch.

What happens during restore

The backup is unpacked and prepared, then the environment switches to it. The previous state is deleted.

Recommendations

No guarantees

A restored environment can still fail, for example because a dependency or setting changed since the backup. The error is often a 500, and the logs name the cause.

Backup restore VS git deployment

The backup holds the code of the time it was made. With Git deployment, the connected branch can be ahead, and the next push deploys that newer code again. Revert the branch to match the backup when the newer code caused the problem.

Backup excludes

See backup excludes.

Written by humans and AI in collaboration.

AI use & editorial processEdit on GitHub ↗