Restore from Backup — Safe Expectations

Who this is for

Users who need to restore a server or site from a previous backup.


Important: What Restore Does and Does Not Do

Before restoring, understand what the restore process covers:

Backup typeWhat gets restored
databaseThe database is overwritten with the backup dump
filesThe document root is overwritten with the backup files
fullBoth files and database are overwritten
snapshotCannot be restored via CloudAIPilot — use your cloud provider console

⚠️ Restore is destructive. Current files and database contents on the server are overwritten by the backup. Any changes made after the backup was taken will be lost.


Snapshot Backups: Cloud Console Required

Cloud provider snapshots (type: snapshot) cannot be restored through CloudAIPilot. To restore a snapshot:

  • AWS: Use the EC2 Console → Snapshots → Create Volume from Snapshot → Attach to instance.
  • GCP: Use the GCP Console → Compute Engine → Disks → Create disk from snapshot.
  • Azure: Use the Azure Portal → Snapshots → Create disk from snapshot.
  • DigitalOcean: Use the DigitalOcean console → Backups/Snapshots → Restore Droplet.

How to Restore a Backup

  1. Open the server detail → Backups tab.
  2. Find the completed backup you want to restore from.
  3. Click Restore.
  4. A confirmation dialog appears explaining what will be overwritten.
  5. Choose:
  • Safe mode (default: ON) — CloudAIPilot takes a pre-restore backup before proceeding. This gives you a fallback if the restore itself causes problems.
  • Disable safe mode if you are in an emergency and disk space is limited.
  1. Click Confirm Restore.

Progress is shown in the Activity Center. The restore job runs step by step via SSH.


Safe Mode Explained

When safe mode is ON:

  1. CloudAIPilot creates a pre-restore snapshot of the current state.
  2. The restore proceeds.
  3. If anything goes wrong, you can restore from the pre-restore snapshot.

Safe mode is strongly recommended for production servers.


What Happens During Restore

For files restore:

  • CloudAIPilot SSH-es to the server.
  • Stops the web server (Nginx) temporarily.
  • Extracts the backup archive to the document root.
  • Restarts Nginx.

For database restore:

  • Drops and re-creates the database (or imports to the existing database with --force).
  • Restores the SQL dump.

For full restore:

  • Files restore, then database restore.

What Success Looks Like

Restore status shows completed in the Activity Center. The site or server returns to the state it was in when the backup was taken. Files are present and the database contains the backed-up data.


Common Issues and Fixes

IssueLikely causeFix
"INVALID_STATE" errorBackup is not in completed statusOnly completed backups can be restored.
"SNAPSHOT_RESTORE" errorTrying to restore a snapshot via CloudAIPilotUse the cloud provider console instead.
"RESTORE_IN_PROGRESS"Another restore is already runningWait for the current restore to complete, or cancel it — see KB-05-06: Cancel Restore.
Restore completes but site is brokenBackup was from a different server or has wrong DB credentialsCheck wp-config.php (or equivalent) for database connection details.

Related Articles