Backup Architecture in Plain Language

Who this is for

Anyone who wants to understand how CloudAIPilot's backup system works before setting it up.


Overview

CloudAIPilot's backup system runs directly on your servers via SSH. It does not route your data through CloudAIPilot's own infrastructure — backups go from your server to your chosen storage destination.


Backup Types

TypeWhat it backs upUse for
snapshotA point-in-time cloud provider disk snapshotFast full-server recovery; cloud provider charges may apply
filesThe site or server's files (via rsync/tar)Website files, app files, static assets
databaseMySQL/MariaDB or PostgreSQL database dumpDatabase-only backup; fast and lightweight
fullFiles + database combinedComplete site backup for restore on any server

How Backups Run

  1. CloudAIPilot SSH-es to your server as the cloudpilot user.
  2. Runs the backup script (tar, mysqldump, or cloud snapshot API call).
  3. Backup file is stored temporarily at /tmp/cloudpilot-backups// on the server.
  4. Metadata (size, status, path) is recorded in CloudAIPilot.
  5. Optionally, the backup is uploaded to a cloud storage vault (S3, GCS, Azure Blob, DigitalOcean Spaces).

Important: Local backups (stored at /tmp/...) are kept on the server. If the server is deleted, these backups are lost. Always configure offsite/cloud storage for important backups.


Backup Status Values

StatusMeaning
pendingBackup job queued, not yet started
runningBackup is actively running on the server
completedBackup finished successfully
failedBackup encountered an error

Offsite Backup Status Values

StatusMeaning
nullBackup has not been uploaded to cloud storage
uploadingUpload to cloud storage is in progress
uploadedSuccessfully stored in cloud storage
failedUpload to cloud storage failed

Manual vs Scheduled Backups


Snapshot vs File/Database Backups

SnapshotFiles/Database/Full
How it worksCloud provider API creates a disk imageCloudAIPilot runs scripts on the server
Restore methodRestore via cloud provider consoleRestore via CloudAIPilot (files/DB overwritten)
DownloadableNoYes (.tar.gz)
Cloud storage uploadNo (stays in cloud provider)Yes
CostCloud provider charges per GBNo additional cost from CloudAIPilot
Speed to createFast (async snapshot)Depends on data size

Backup Retention

Backups expire after the configured retention period (default: 30 days). Expired backups are automatically cleaned up. See KB-05-09: Retention Policy.


Related Articles