Backups and restore — schedules, snapshots and off-server copies
A backup that sits on the server it protects does not survive losing that server. This guide covers the three layers Nimbopanel gives you, in the order to set them up, and then what a customer does from their own panel.
For the administrator: System → Backups
Open System, then the Backups tab. It has three cards.
Automatic backups
Every active account is backed up on a schedule. A backup is one archive of the whole account: website files, databases, mailboxes, cron jobs and DNS zones.
- How often is every few hours (0 turns the schedule off), every day, every week on the weekday you pick, or every month on a day from 1 to 28, at an hour of the server's day.
- Keep newest N per account is the retention. 0 keeps every backup.
- Save schedule stores both. Run backups now starts a run immediately.
A saved schedule, the retention and Run backups now all apply at once; the panel does not need a restart.
Two limits protect the server. One backup or restore may run for up to three hours, which is enough for accounts of several gigabytes. And at most two backups or restores run at the same time on a server; a third is refused with "the server is busy" and can be tried again in a few minutes.
Incremental backups
Full backups are large, so you keep few of them. Incremental backups are point-in-time snapshots on top of them: each stores only what changed, so many restore points cost little space. Press Enable incremental backups once. From then on the snapshots are taken by themselves on the daily backup schedule, and the panel keeps 7 daily, 4 weekly and 6 monthly ones. Customers can also take a snapshot themselves and go back to any of them.
Off-server backups
Snapshots and backups live on the same server unless you copy them away. The
Off-server backups card copies each backup to remote storage after every
run. Choose a provider: Amazon S3, Backblaze B2, Wasabi, Cloudflare R2,
DigitalOcean Spaces, any other S3-compatible storage, an FTP, FTPS or SFTP
server, a WebDAV server (Nextcloud, ownCloud and the like), or Google Drive. For
Google Drive, paste the token that rclone authorize "drive" prints on your own
computer; the panel then sees only the files it made there. Enter the endpoint,
bucket and keys, tick Enabled, and press Save & test connection. The keys are stored only in a root-only file on the server.
They are never saved in the panel and never shown again; Clear keys wipes
them.
The card also shows when the last backup ran, so a schedule that has stopped does not go unnoticed.
For the customer: Files → Backups
The Backups tool in a customer's panel is for the account's own data.
- Times on the page are shown in the time zone of your computer, with the zone written next to them. Which backup do I need? explains the kinds, and the Backup Wizard goes through backing up or restoring everything, the website files, the databases, the email forwarders or the email filters in three steps.
- Create backup now makes a full backup of the account, which you can
download or restore later. Download a backup with a password saves it
locked (AES-256, at least 10 characters; the password is not kept anywhere). To
open it on your computer:
openssl enc -d -aes-256-cbc -pbkdf2 -iter 100000 -in backup.tar.gz.enc -out backup.tar.gz. A restore can be selective: website files, databases, email, cron jobs and DNS zones are separate tick boxes, so you can put one database back without touching the site. You typeRESTOREto confirm, because a restore overwrites what is there now. - Snapshots appear when the server's administrator has enabled incremental backups. Take a snapshot now adds a restore point, and you can roll back to any earlier one. If you do not see them, ask your host.
- Partial backups work without a full backup. Download your databases or your
website files alone, restore a database from a
.sqlor.sql.gzdump into a database you pick or have made for you, or extract a.zip,.tar.gzor.tgzarchive of your site intopublic_html. Each of these overwrites what it touches and asks first. Email forwarders can be saved as a text file and email filters as a file of their own; restoring them adds only what is missing. - The tool is gated by your hosting plan. If it is not in your panel, your provider has not included it.
Moving between servers
The same tool moves a site in and out:
- Download cPanel archive makes an archive in cPanel's own layout (
cpmove): files, databases and their users, email accounts and messages, forwarders, DNS zones and cron jobs. Use it to move to a cPanel server, or to any panel that reads cPanel backups. - Move here from cPanel takes the full backup you downloaded from an old cPanel host and shows what will be moved before anything changes: the website files, databases and email of the domains already in your account. The domains themselves are not created from the backup, so add them under Domains first.
An administrator who moves whole accounts uses Migrate instead: see Migrating from cPanel.
What to do in the first week
- Set a schedule and a retention you can afford in disk space.
- Set up an off-server destination, test it, and look at Last backup the next day.
- Enable incremental backups if your customers edit their sites often.
- Restore a backup of a test account once, so the first restore you ever do is not the one you need.
Related: Administrator guide · Hosting account guide · Troubleshooting