Restoring in cPanel
A guide for cPanel users whose hosting provider backs up their account with cpKamra: how to get back a deleted file, an earlier state of a website, a mailbox or a database.
Your provider decides which of these you can use: some features (for example Back up now or Export) may be turned off for your package, and the provider also sets how long backups are kept.
- Opening it
- Restoring files and folders
- Databases
- DNS zones
- Account settings
- Downloads
- Restores and downloads
- Back up now
- Export to your own storage
- Languages
Opening it
In cPanel, open Files → Backup & Restore.

At the top you see when your account was last backed up, and whether that backup was OK. Backups are taken automatically every night; you don’t have to do anything for them.
| Tab | What you can do there |
|---|---|
| Files | browse your home directory as it was at a backup, restore or download files and folders |
| restore or download a mailbox | |
| Databases | restore a database in place or into a new one, or download it |
| DNS zones | compare a zone with the one in the backup, restore or download it |
| Account settings | restore cron jobs, email forwarders, SSL certificates, domains and database users one by one |
| Restores & downloads | follow what you started, and get your downloads |
| Export | send a download or your whole backup to your own storage |
Restores and downloads run in the background. You can close the page; the result appears on the Restores & downloads tab.
Restoring files and folders
- On the Files tab, choose the backup time in the Backup list (the newest is selected by default).
- Open folders by clicking their names; the path above the list takes you back.
- Click Restore next to a file or folder, or This folder: Restore for the folder you are in.

Then choose how to restore:

| Option | Result |
|---|---|
| Merge | Missing files come back; everything else stays as it is. If you also tick Also replace files that exist in both, the backup’s version comes back for the files you have changed since, too. |
| Overwrite | The folder becomes exactly like the backup: whatever is not in the backup is deleted. Use it to roll a website back to a known good state, for example after a hack. Files excluded from backups (such as caches) are kept. |
| Into a new folder | The backup goes into a new folder under ~/cpkamra-restore/, and nothing else changes. Use it when you only want to look at or copy something from the backup. |
If you are not sure, choose Into a new folder: it doesn’t touch your live site.
On the Email tab, choose the backup time, then click Restore next to the mailbox. Merge (the default) brings the backup’s messages back next to the ones you have now, so nothing you have received since is lost. Overwrite makes the mailbox exactly like the backup, so newer mail is deleted; Into a new folder puts it under ~/cpkamra-restore/. A deleted mailbox comes back too, with its old password. Download gives you the mailbox as a .tar.gz file.

Databases
On the Databases tab, each database has its own list of backup times, because databases may be backed up more often than files. Restore offers two choices:
- Replace the current database: the backup takes the place of the current database. A safety copy is made first, and if the restore fails, the original is put back.
- Restore into a new database, under the name you give, so you can compare or copy the data while the site keeps running.
Download gives you an SQL dump (.sql.gz), which you can import with phpMyAdmin or the mysql command.

DNS zones
On the DNS zones tab, Compare shows the difference between a domain’s zone in the backup and the live one; you can also restore the whole zone or download the zone file. The restored zone gets a new serial number, so the other name servers pick it up.

Account settings
The Account settings tab lists the cPanel settings in the backup: cron jobs, email forwarders and default addresses, the SSL certificate of each domain, subdomains, addon and alias domains, and database users. Each line shows whether it differs from what you have now (Missing now, Different now, Same as now), and each can be restored on its own. Restoring never removes anything you have added since; a default address, certificate or document root that differs is, however, set back to the backup’s.

Email filters, autoresponders and other settings stored in your home directory come back with the files (Files tab). FTP accounts can’t be restored here. A restored database user comes back with its old password.
Downloads
Download next to a file, folder, mailbox, database or zone prepares an archive (.tar.gz, or .sql.gz for a database). When it is ready, a link appears on the Restores & downloads tab. The file goes into your cpkamra-downloads folder, so it counts against your disk quota; it is deleted automatically after a few days (the tab shows exactly how many).

Restores and downloads
This tab lists the restores and downloads of your account, newest first, with the result of each: how many files were restored, replaced or deleted, where a copy went, or the download link. A job you started can be cancelled with Cancel while it is still waiting.

Back up now
Back up now (next to the time of the last backup) backs up your whole account right away, for example before you update your CMS or move your site. Your provider sets how many times you can start it in 24 hours (usually once); when none is left, the page tells you when you can start the next one. The backup waits behind restores in the queue, so it may not start at once; while it waits, you can cancel it with Cancel.
Export to your own storage
On the Export tab you can send a copy to your own storage: an S3-compatible bucket or an SFTP server. The tab is available when your provider’s servers are connected to a cpKamra controller and the feature is turned on for your package.

- Click New export.
- Choose what to send: a download you prepared earlier, or the whole backup. The latter is every backup of your account, as a restic repository with a new password of its own. The password is shown on the Export tab when the export ends; save it, because it is not shown again later, and it is not sent by email either.
- Enter the storage details. For SFTP, click Check the host key first, and compare the fingerprint with the one your storage provider shows.
- If you like, ask for an email when the export ends, then click Start.
The system uses the access details you enter for this one export only. Exports run when the server is not busy with backups, so a large export can take a while; the tab shows its progress. The whole backup can be opened with restic and the password you got with the export.
Languages
The page follows your cPanel language: it appears in Hungarian, English or Slovenian, and in English for other languages.