ServerAvatarDocs
Backups

Restore a backup

Put an application or a database back from one of its backups, follow the restore, and undo it with the safety copy.

A restore puts the files, the database, or both back to the state of a backup. It overwrites what is there now, on the same server. By default, Central first takes a safety copy of the application as it is, so you can undo the restore.

You can restore from an application's Backups screen and from the server's History tab. Only a backup whose status is Complete can be restored.

Restore an application

  1. Open the application's Backups screen. Under Recent backups, find the backup you want. If it isn't among the newest five, select All backups to open the server's History tab.

    The Recent backups table with a Download button and a red Restore button on each complete backup

  2. Select Restore on the row. The dialog Restore the backup from when? opens. It says "This overwrites name with the backup."

    The Restore the backup dialog with the What to restore choices, the safety copy switch, the warning and the field to type the domain

  3. Under What to restore, choose:

    • Files and database,
    • Files only, or
    • Database only.

    The choice is shown for a backup of Files and database. A backup of only files, or only the database, can be restored only as what it holds.

  4. Leave Take a safety copy first on. It takes "A backup of the application as it is now, so this restore can be undone." With it on, the dialog says "Changes made since this backup are replaced. The safety copy keeps them, so you can go back." If you turn it off, the dialog warns: "Changes made since this backup are lost for good: without a safety copy this can't be undone."

  5. Type the application's domain in the box under Type domain to confirm. Copy copies it for you. The Restore button stays disabled until what you type matches.

  6. Select Restore. The button says "Starting…" while the request is sent.

Restore a database

A database restores from its own Backups tab, or from the server's History tab. The dialog is the same, with these differences:

  • There is no What to restore choice: the database is put back.
  • The safety copy is "A backup of the database as it is now, so this restore can be undone."
  • You type the database's name to confirm.

A database that was deleted keeps its backups on the server's Archived tab. To put a copy back, open the Backups tab of the database it should go into.

Follow the restore

The restore starts in the background.

  • On the application's Backups screen, a card Restoring a backup appears: "Back up now and Restore wait until it finishes. This updates on its own." A bar shows the step: "Step n of m: title", or "Waiting for the server to start it…".
  • When it ends, the card says Restore finished: "The application was restored. The safety copy is in the history if you need to go back." Or Restore failed, with the reason, or "The restore didn't finish." Select Hide to close the card.
  • From the History tab, you see "The restore has started. Follow it under Restores." and the Restores tab opens.
  • If you reload the page while a restore runs, the card comes back.

While a restore runs, Back up now, Retry, Restore and Turn off backups on that application are disabled: "A restore is running. Wait for it to finish."

See the restore history

The server's Restores tab lists every restore. See The server's Backups screen. Each row has the Status, what was put back, when it Started, and the Safety copy.

Undo a restore

A restore that finished and took a safety copy has an Undo button on the Restores tab.

  1. Open the server's Backups, then Restores.
  2. On the restore, select Undo. It restores the safety copy, with the same confirmation as any other restore.
  3. You see "Undo has started: the safety copy is being put back."

The Safety copy column says "None available" when no safety copy was taken, and "Not available" when there is one but the restore did not succeed.

A safety copy is a backup like any other. It stays in History until you delete it. When you delete one, the dialog says so: "One of these is a safety copy taken automatically before a restore."

Limits

  • A restore puts the backup back on the same server it was taken on.
  • Only backups with the status Complete have Restore.
  • Backups of volumes or of Compose configuration (container applications) don't have Restore in Central.
  • The typed confirmation must match the application's domain, or the database's name, exactly (spaces around it are ignored).
  • The safety copy is on by default.

Who can do this

  • Restore needs Manage on Backups for the server (server.backup) and, for the screen you start it from, Manage on the application's Backups (application.backup) or on Databases (server.database).
  • Undo needs Manage on Backups for the server.
  • A Control Panel customer restores from their own storage.

See Roles and permissions.

Common errors

  • The restore failed. The card or the toast shows the reason the server gave. Read it, fix the cause and try again. A safety copy, if one was taken, is in History.
  • A restore is running. Wait for it to finish. Wait for the restore that is running to end, then start the next action.
  • You can see the backups but not change them. You have View only.

On this page