When you have an active and working website you always have to take care of your data.
What happens if you suddenly see that your website is not working, or your data on the website is deleted or your website is hacked, or some update crashed the whole website. Oh, it’s a very critical and dangerous situation for you.
Now, to avoid this type of situation you need to set up a proper backup for your website. Backups are always proving as useful and important for you.
CyberPanel Cloud brings a new exclusive feature for you to set up your backups with CyberPanel Cloud.
To set up cloud backups you need to login to CyberPanel Cloud first.
Visit https://cloud.cyberpanel.net/ and log in by providing the login details.
If you do not have an account, please create an account and buy a suitable plan from the Cloud. Read more about plan and Cloud here https://cyberpanel.net/docs/what-is-cyberpanel-cloud/
Once you logged in you can see the different options. On the top menu, you can see the first option Servers.
Click on this server button and you can see all your server you added to CyberPanel Cloud.
On your server, you can see three dots on the top as shown below. Click on this button.
You can see three options
Click on the manage button here.
Here in this manage Dashboard, you can see the websites that you added below. There is a Launch button for each website as shown below. Click that launch button.
Once you get in the manage website option here you can see the Cloud Back option when you click on you can see a Create Backup option.
Here you can see the option for which you want to add backup. The most important thing you have to take care of that is what you want to include in a backup.
If you do not select any option nothing is included in the backup but a backup file will be created and a backup added.
Here is another exciting and important feature that you can restore your backup from the backup page.
Below the create backup button you can see the restore button if you want to restore backup instantly you can restore the backup by just clicking the restore button.
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.
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.
Go directly to :8090/IncrementalBackups/restoreRemoteBackups or Incremental Backup -> Restore from Remote
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.
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.