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
- Open the backups of the environment in the dashboard.
- Pick the backup to restore.
- 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
- Save the current state first, with a manual backup or by downloading the website.
- Check what the backup holds, see backup files.
- Change nothing while the restore runs.
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.