fbpx

CyberPanel version v1.9.1 added support for the incremental backups. However, you were not able to restore backups from remote servers. With the release of v1.9.2, you can now restore backups from remote destinations. For this to work, you need to follow these tutorials:

Before moving on with this tutorial, I assume that you already have incremental backups somewhere on an SFTP server or your AWS account. Let say you had a server where you added AWS S3 as a remote destination for remote backups and then you scheduled to run backups every day. You then set up a separate CyberPanel server where you want to use those backups to restore a site, in this article we will see how exactly we can do that.


Step 1: Install CyberPanel and Create a Site

On a new server, install CyberPanel and then create a site that you want to restore. Now using Add/Remove Destinations for Incremental Backups add the same destination to the new server that you just set up.

Please note that whenever you create an incremental backup a new password-protected repository is created where your backups are hosted, the password is emailed and saved on /home/domain.com/domain.com file. Make sure you have this password in a safe place, otherwise you can't use this feature to restore a site on the new server.


Step 2: Restore Website from Remote Destination

Go directly to  :8090/IncrementalBackups/restoreRemoteBackups or Incremental Backup -> Restore from Remote

  1. Select the site you want to restore.
  2. Select the destination you want to restore it from, make sure you add this destination as described in Step 1.
  3. Enter repository password, which you can find in your old server at /home/domain.com/domain.com this password is also emailed to you during the creationg of the repository, so make sure you have this password in case the email is not delivered (you can read it from server file and save locally).
  4. Finally, click Fetch Restore Points.

Restore Meta

On top, you will see a restore point with a path like /home/domain.com/meta.xml. Make sure this is the first thing you restore, this will help create any child-domains, email records or databases that you had in your old server.

Restore Data

After restoring meta, the next thing you need to do is to restore Data, its path will be like /home/domain.com. After restoring data, you can move on to restore databases and email in any order you like, if you don't need any database you can skip as well.

CyberPanel supports one click back/restore for your accounts.


How To Take Backup

Taking complete backup of a website account is simple.

Main » Backup » Create Backup

 

  1. Select website from the list that you want to backup.
  2. Select backup destination.
  3. Click 'Create Backup'.

It will take some time depending on the amount of space the account is using.

Backup location is: /home/<domain name>/backup

Note: You can close the window and come back later to check the status of backup creation.


Restore Backup

Backup restore only works with backups generated through backup generation tool in CyberPanel.

Main » Backup » Restore Backup

 

Place your backup files under /home/backup/

This will detect all files under /home/backup/. It may take some time, you can also leave the window and come back later to check.

chevron-down