# Roll back an app > Roll an Orchard app back to an earlier image, optionally restore its bound databases, and restart an app on the same image. Source: https://docs.orchard.hackclub.com/deploy/rollbacks/ When a deploy goes wrong, a rollback puts the app back on an earlier image in the time it takes to start new pods, with no rebuild. A rollback is a deploy of the older image, so it uses the same [rolling update](/deploy/update-strategies/) and [health checks](/deploy/scaling/#set-health-checks) as any other deploy. A rollback does not revert your repository. It also leaves the database schema as it is, unless you restore bound databases. ## Roll back an app **Dashboard** 1. Open the app. 2. Go to **Activity**. 3. In **History**, find the release. 4. Select **Roll back**. To return to the previous release, select **Roll back** on the **Live** release at the top of the page. 5. (Optional) Select **Also restore bound databases to before this deploy**. Each database returns to its [checkpoint](/data/backups/#take-a-checkpoint) from before the deploy. 6. Select **Promote**. **CLI** To roll back to the previous release: ```sh orchard deploy rollback --wait ``` To roll back to a specific release, get its ID from `orchard deploy releases `, then run the following command: ```sh orchard deploy rollback --wait ``` To restore bound databases too, add `--restore-databases`. > **Caution** > > Restoring a database discards writes made after the checkpoint. If you do not restore, a destructive migration stays in place and the older image runs against the new schema. ## Recover from a bad deploy 1. Roll back to the last working image. 2. Fix the problem in the repository. 3. Push the fix. If [auto-deploy](/deploy/github/#auto-deploy) is on, Orchard builds and deploys it. ## Restart an app A restart creates new pods on the same image. Use it for a stuck process, such as a blocked connection pool. If the image has the problem, use a rollback instead. **Dashboard** Open the app and select **Restart** in the header. **CLI** ```sh orchard deploy restart ``` ## Related resources - [Builds](/deploy/builds/) - Find out why a build failed before you push a fix. - [Back up and restore a database](/data/backups/) - Restore a database on its own, outside a rollback. - [`orchard deploy` reference](/reference/cli/#deploy) - Every flag of the `orchard deploy` commands.