Skip to content

Backup ​

Use the Backup menu (page title Backups) to see your account's backup snapshots, run a backup now, restore files, databases, or mailboxes, download backup content to your computer, and send backups to storage you own.

How backups work ​

  • Backups run automatically on the schedule set by your hosting provider.
  • Each backup is stored as a snapshot, a restore point at a specific time.
  • Backups are encrypted with restic and stored at your hosting provider's storage destination.
  • If your package includes it, you can also send backups to your own storage. See External backup.
  • Backup integrity is checked after every backup.

A full snapshot contains:

  • every file in the account's home folder;
  • all mailboxes;
  • dumps of all MySQL/MariaDB and PostgreSQL databases.

Summary ​

CardShows
Latest backupStatus of the last backup (Successful, Failed, Running, or Queued), its time, and its size.
Available snapshotsNumber of restore points.
Storage destinationName of the backup storage destination.
IntegrityVerified when the last backup check passed.

Backup policy ​

The Backup policy panel shows your account's backup rules:

RowExample
Policy nameDefault
Schedule"Daily at 02:00"
ContentsFiles, email, databases
Retention"last 3, 7 daily, 4 weekly" (snapshots kept)
EncryptionEncrypted with restic
Last backup / Last restoreTime of the last backup and restore

Schedule and retention are set by your hosting provider. Times are shown in your local time zone.

Running a backup now ​

Click Back up now at the top right of the page. The backup runs in the background. The new snapshot appears in the list when it is done.

TIP

Run a manual backup before big changes, e.g. a theme update, a plugin migration, or a database import.

Snapshot list ​

The Snapshots table contains the snapshots of the selected source. When you have external storage, choose Hosting provider backup or one of your storages at the top right of the panel.

ColumnShows
IDShort snapshot ID.
Date & timeSnapshot time. Automatic snapshots are marked Scheduled.
ContentsThe parts the snapshot covers, marked Full backup or Partial.
SizeTotal size of the files, email, and database dumps in the snapshot. — means the size is not known.
ActionsDownload and Restore.

Restoring from a backup ​

  1. In the Snapshots table, click Restore on the snapshot you want.

  2. Choose What to restore:

    OptionRestoresWhat you pick
    Full accountAll files, email, and databasesNothing
    File / folderOne file or folderA file or folder from the snapshot's folder list
    DatabaseOne databaseA database from the list of databases in the snapshot
    MailboxOne mailboxA mailbox from the list, grouped by domain
  3. Pick what to restore from the list. The list shows what is inside that snapshot, not what is on your account now:

    • File / folder: the list starts at your home folder, with folders first and then files, sorted by name. Click a row to select it. Click the arrow (or double-click a folder) to open it, and use the path at the top or Up one level to go back. Inside a folder, Select this whole folder selects the folder you are in. Files show their size and modification time.
    • Database: each database shows MariaDB or PostgreSQL and the size of its dump.
    • Mailbox: mailboxes are listed under their domain.

    Long lists get a Filter box. If you already know the path or name, click Type it instead and type it, e.g. public_html/wp-content/uploads, jane_shop, or info@myshop.com.

  4. For a file or folder, you can tick Restore into a new folder restored-YYYYMMDD instead of overwriting. The selection is then restored under ~/restored-YYYYMMDD/ and your current files are not changed, so you can compare them first.

  5. Click Restore to start.

The restore runs in the background. The result shows in Last restore on the policy panel and in Recent activity.

A restore overwrites data

A restore overwrites current data in its original location. Changes made after the snapshot time are lost for the restored part. If in doubt, run Back up now first so the current state also has a backup, or restore a smaller part (one folder or one database) instead of the full account.

PostgreSQL databases

PostgreSQL databases are marked PostgreSQL in the list. When you type the name yourself, prefix it with pgsql:, e.g. pgsql:jane_shop.

Storage over FTP

Snapshots kept on FTP storage cannot be listed, because reading them means copying the whole repository first. For those, the dialog asks you to type the path, database name, or mailbox address.

Downloading a backup ​

  1. Click Download on the snapshot row.
  2. Your browser starts downloading a tar.gz file with the files, email, and database dumps from that snapshot.

The archive is streamed directly from backup storage and is not copied to the hosting disk, so it does not use your account quota. The download link is temporary. If the download is interrupted, the archive is incomplete. Download it again from the panel.

The archive has a portable layout, so you can restore it in MoorCP or read it with another control panel:

jane-20261112-0200-1a2b3c4d/
├── README.txt      how to restore it in MoorCP and in other panels
├── account.json    domains, databases, and mailboxes of the account
├── files/          the home folder, without mail
├── databases/      <database>.sql.gz, and postgresql/<database>.sql.gz
└── mail/           <domain>/<user>/ in Maildir format

Passwords of email accounts and database users are not included.

Restoring from an archive ​

You can restore a backup archive downloaded from a MoorCP panel, e.g. after moving from another MoorCP provider.

  1. Upload the .tar.gz archive to your home folder with the File Manager or FTP.
  2. In the Restore from backup panel, click Restore from archive.
  3. Choose the Archive in your home folder. If it is in a subfolder, choose Other path… and type the Archive path.
  4. Under What to restore, tick Files, Databases, and/or Email.
  5. Click Restore.

The restore runs in the background:

  • Files: files and folders in files/ replace the items with the same name in your home folder.
  • Databases: each dump is imported into the database with the same name. Database names must start with your account prefix, e.g. jane_. Other dumps are skipped with a message.
  • Email: mailboxes are restored only for email accounts that already exist. Create the email accounts first.

The archive must fit in the free disk space of the server, with 1 GB to spare.

DANGER

Restoring from an archive overwrites files and databases with the same name. Run Back up now first if you may need the current state.

External backup ​

If your hosting package includes External backup, you can also send backups to storage you own, next to your hosting provider's backup. Backups are encrypted before they leave the server. The External backup storage and Backup rules panels appear on the Backup page.

Adding a storage ​

  1. In External backup storage, click Add storage.

  2. Enter a Name, e.g. My NAS, and choose the Storage type:

    Storage typeFields
    SFTP / SSHHost, Port (22), Username, Folder, and Sign in with Password or SSH private key
    FTP / FTPSHost, Port (21), Username, Password, Folder, and TLS: Explicit FTPS (recommended), Implicit FTPS (port 990), or None (plain FTP)
    S3 compatible (AWS, Wasabi, MinIO, …)Endpoint (https://), Region, Bucket, Prefix (optional), Access key ID, Secret access key
    Cloudflare R2Cloudflare account ID, Bucket, Prefix (optional), Access key ID, Secret access key
    Google DriveClient ID, Client secret, Folder in Google Drive
  3. Click Save.

  4. Click Test on the storage row. The status changes to Connected when the panel can reach it.

You can add up to 5 storages. The host must be a public hostname or IP address; addresses in internal networks are refused. Credentials are stored encrypted and are never shown again. Leave a secret field empty when editing to keep the current one.

Inside the storage, each server gets a subfolder, then one folder per account (<server>/<username>).

Plain FTP

None (plain FTP) sends your username and password unencrypted. The backup content is still encrypted, but use FTPS if your server supports it.

Google Drive ​

Google Drive uses your own Google OAuth client. The panel shows the steps in the form:

  1. In Google Cloud Console, create a project and enable the Google Drive API.
  2. Configure the OAuth consent screen (External) and set its publishing status to In production. In Testing mode Google expires the access after 7 days.
  3. Create an OAuth client ID of type Web application and add the Authorized redirect URI that the panel shows.
  4. Paste the Client ID and Client secret, save, then click Connect Google Drive and approve the access.

The panel only asks for access to the files and folders it creates itself. If access stops working, choose Reconnect Google Drive from the storage menu.

Backup rules ​

A rule sends backups to one of your storages on a schedule.

  1. In Backup rules, click Add rule.

  2. Fill in the rule:

    FieldNotes
    Rule namee.g. Daily backup.
    StorageOne of your storages.
    Time (your local time)When the backup starts.
    DaysOnly the selected days. No day selected means every day.
    ContentsFiles, Databases, and/or Email.
    Keep daily / Keep weekly / Keep monthlyHow many backups to keep, 0 to 365 each.
    Active / PausedPaused rules do not run.
  3. Click Save.

You can have up to 5 rules. Older backups beyond the retention numbers are removed from your storage automatically. After the first backup, only changed data is uploaded. Click Run now on a rule to start a backup right away.

A new or changed rule does not catch up on a time that has already passed today. If the account is being backed up at the scheduled time, the rule retries for up to 6 hours.

Using external backups ​

In the Snapshots panel, choose the source at the top right: Hosting provider backup or one of your storages. Download and restore work the same way as for the provider's backups.

Restore password ​

Backups in your storage are restic repositories. Choose Show restore password from the storage menu to see their password. Keep it somewhere safe: with it you can open your backups with restic without this panel, e.g. after moving to another provider. The password is different for each storage.

Removing a storage also removes its rules. Backups already stored there are not deleted.

INFO

If your package no longer includes external backup, your storages stay listed, but scheduled backups to them are paused.

WordPress backups ​

Besides account backups, the WordPress Manager automatically backs up a WordPress installation before every update. See WordPress Manager.

See also ​

MoorCP Shared, a shared hosting panel for server fleets.