fbpx

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.


Follow steps to setup Backup:

  1. Login to CyberPanel Cloud
  2. Manage Your server
  3. Setup backups for your website
  4. Restore Backup from Cloud

Login to 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/


Manage Your server

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

  1. Manage
  2. CyberPanel Access
  3. Delete

Click on the manage button here.

 


Create Backup For your Website:

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.

  1. Data
  2. Databases
  3. Emails

If you do not select any option nothing is included in the backup but a backup file will be created and a backup added.


Restore Backup From Cloud:

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.

 

 

 

 

As a result of massive user interest and most upvoted feature requests, CyberPanel has added the option to save backups to Google Drive in version 2.0.2.

You can configure as many Google Drive accounts and configure each account with the different or same set of sites for backups.


1. Login to your Cyberpanel

Use your Cyberpanel credentials to log in


2. Go to Backup -> Set up Google Drive


3. Click on "Setup new account"


4. In the pop-up box, enter any name you want to use


5. Allow CyberPanel to save backups to your Google Drive

You will have to log in to your Google account if you aren't already logged in


6. Confirm again


7. You will be redirected back to Google drive setup screen, choose the account you created in step 4

 


8. Select backup frequency and the site you want to backup and click Add Site

 

 

 

CyberPanel provides an option to View logs which can be used to check details of the backup process and transfer to Google Drive

 

 

That's it. You have successfully set up periodic backups to your Google Drive. CyberPanel makes it easy for you to set up direct backups to Google drive in less than 5 minutes

Troubleshooting redirection from platform to cloud

We have recently shifted the support URL from platform.cyberpanel.net to cloud.cyberpanel.net. If you are being redirected and unable to setup, please upgrade Cyberpanel and try again

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 and cPanel are both hosting control panels, and they help you manage your websites. With one command you get a fully functional LAMP stack that is ready to serve your web applications. Let see how CyberPanel is a feasible cPanel alternative.

If you are new to development or managing sites then you will sooner or later discover that some variation of the LAMP stack  (Linux, Apache, MySQL, and PHP) is mandatory to run your sites. Here Apache can be replaced with other web servers such as OpenLiteSpeed, and PHP can be replaced with other programming languages like Python. Control panels like cPanel and CyberPanel offer many other features on top of the LAMP stack, and these features can help you in many ways.


Basic Feature Comparison

cPanel is almost 20 years old, and 20 years ago everything was very different. Hardware and bandwidth were expensive, so cPanel was designed to be used by shared hosting companies. Usually, in a shared hosting environment, a single server is hosting hundreds or even thousands of sites, which allows the company to get maximum profit out of existing hardware. Everything was expensive back then.

Considering these facts, cPanel is bloated with umpteen number of features, many of which are not required by a normal end-user. Additionally, all of these features make cPanel expensive to buy and a high consumer of server resources.

Fast-forward 20 years, and these days hardware and bandwidth are not as expensive as they were in the past. Anyone can get a virtual private server for $5/month, with roughly 1GB of RAM and 20GB disk space. If configured right, a $5 VPS can host 10-20 sites easily or even 100 static sites. The most basic cPanel package is $15. Spending $5 + $15 does not make sense if you only want to host a simple WordPress site.

CyberPanel to the rescue! CyberPanel is a great cPanel alternative. It offers all of the features needed to host and run a site including Web, DNS, FTP, and Email server. On top of that CyberPanel also offers two variants: Free and Paid.

CyberPanel Free vs Paid Variant

CyberPanel's free version is 100% identical to CyberPanel Enterprise, the paid version. However, the free version comes with the OpenLiteSpeed web server, whereas the paid version comes with LiteSpeed Enterprise and our premium support.

You can learn the difference between OpenLiteSpeed and LiteSpeed Enterprise Web Server here. The most relevant differences are:

Note: On our pricing page, the listed plans include the cost of the corresponding LiteSpeed Web Server license. This means you do not need to buy a web server license separately. You get huge saving plus high performance. To see all of the plans in detail, you can visit the store. Or if you want to try the fully function free version of CyberPanel, just run this command on your terminal:

sh <(curl https://cyberpanel.net/install.sh || wget -O - https://cyberpanel.net/install.sh)

Within a few minutes, your server is ready to deploy super fast WordPress or other web apps. If you are still not convinced then learn why people are moving their WordPress setups to CyberPanel.


Use Case: cPanel vs CyberPanel

Let's walk through a website administrator's daily routine tasks. Since WordPress is the most-used CMS, we will use that as an example. We'll create a site, install WordPress, set up SSL, back up the site, use the staging features on CyberPanel, and finally set up email.

Step 1: Buy Server and Install Control Panel

Some hosting companies will give you pre-installed servers, if you chose a specific control panel. On the other hand, you can also self-install cPanel or CyberPanel.

To install cPanel you can run the following command on your server terminal:

cd /home && curl -o latest -L https://securedownloads.cpanel.net/latest && sh latest

After command line installation is complete, visit https://<IP Address>:2087. During this first visit, you will need to set up your basic configuration. This can be hard for new or inexperienced users.

Installing CyberPanel is comparatively easy, as you don't need to do any configuration once the installation is completed. To install, run the following command:

sh <(curl https://cyberpanel.net/install.sh || wget -O - https://cyberpanel.net/install.sh)

After successful installation, you can immediately visit the CyberPanel interface at https://<IP Address>:8090, with no additional configuration required.

Step 2: Create a Website

cPanel via WHM

cpanel alternative

 

To create a website via cPanel + WHM, you would follow these steps:

  1. Log into WHM with your username and password, or enter your URL (example.com/WHM or example.com:2087)
  2. Go to Create a New Account by searching on left top search bar
  3. Enter your site's Domain
  4. Enter your Username
  5. Enter your Password
  6. Provide an Email Address
  7. Choose a package. The default option is for unlimited resources, or you can enter resources (disk space, bandwidth, ftp accounts etc.) manually according to your requirements.
  8. Select a default language for your website.
  9. Update Mail Routing Service, in which you can choose to automatically detect the configuration
  10. Press the Click to Create button, and within 3-to-5 seconds, your account will be created in WHM. Then, you will see a dialog box to enter cPanel via a list of websites.

This process is not user-friendly. Beginners don't need many of the features, nor do they necessarily know how to determine their requirements based on projected usage. Beginners need more time to understand the complexity of the software.

CyberPanel

Creating a website on CyberPanel is much easier than with cPanel. CyberPanel is designed for end-users to create their website and manage it. CyberPanel's GUI (Graphical User Interface) is simple and user-friendly as compared to cPanel.

cyberpanel

Follow the steps below to create a website on CyberPanel:

  1. Log into CyberPanel with your username and password
  2. Go to Websites > Create Website from left menu bar
  3. Select Package (Choose the default or create your own package according to your requirements.)
  4. Select Owner (Normally admin is used, or you can give management access to any of your users.)
  5. Enter Domain Name (example.com)
  6. Enter Email Address
  7. Select PHP (Options available range from PHP 5.6 to 7.3)
  8. Additional features like SSL, DKIM, and DNS Verification are available with one click, and they are absolutely free.
  9. Click the Create Website button and within 10 seconds, you will have your new website.

Note: If you want SSL to be successfully issued make sure that your site's DNS is already pointed to the server IP.

Step 3: Manage Your Site

The cPanel interface is very complex, compared to CyberPanel. While cPanel has existed for more than 20 years, CyberPanel is designed for end-users and includes all basic and advanced features with a user-friendly GUI. It can be difficult for an end-user to understand WHM and locate the required features (as they are innumerable) but CyberPanel displays all icons in the main dashboard.

cPanel

 

Interface of cpanel alternative managing domains

 

The above image shows the cPanel domain management interface. The dashboard offers major and advanced features in the following categories: Files, Databases, Domains, Email, Metrics, Security, Software, Advanced, Preferences and Applications. These categories narrow down major tasks that are performed by either the system administrator or the end-user. Most of the features, though, are not relevant to the end-user.

CyberPanel

Interface of a domain in cyberpanel

 

The above image shows the CyberPanel interface, which helps end-users to manage their websites in a friendly way. To manage your site, navigate to Websites > List Websites > Manage. If you scroll down, you will find relevant features that are easily understandable for end-users. You can view access logs, control child domains, edit configuration files, visit the file manager, use email marketing, or install applications with our one-click application installer for WordPress, Joomla and PrestaShop.

Step 4: Set up a WordPress Site

cPanel

setting wordpress on cpanel

 

When you log into the cPanel dashboard, you will need to go to Domains > Site Publisher where you will follow three steps to set up your website on WordPress: Select your domain, choose a template, and publish your website. The cPanel dashboard carries all of these features under one umbrella, which can be confusing to end-users who just want the basic tools to run their websites.

CyberPanel

setting wordpress on cyberpanel

 

The installation of  WordPress on CyberPanel is very easy as compared to cPanel. Navigate to Websites > List Websites > Manage, where you will find our auto-installer for WordPress with LS Cache Plugin. The LS Cache Plugin feature reduces website load time when compared to other cache plugins because it is built right into the server. It uses disk space to save and serve cache copies. Click WordPress, and it will take you to the above window where you will enter your desired information. The website will be ready to use in 10 seconds.

Step 5: Back up the System

The Backup feature helps to secure/restore your data. In an era of cyberattacks, hackers find loopholes to attack recognized websites. Backup allows you to save your data as per your requirements on a daily and weekly basis. In the case of computer viruses, system files get affected easily and need to be removed from system, otherwise, chances of cyberattacks get increased. It's smart to have a backup of important files.

cPanel

 

backup wizard at cpanel

cPanel's backup system offers two types of backup: Full and Partial. A full backup creates an archive of all the files and the configuration of a website. Partial backup allows you to download archive files of the home directory, MySQL databases and email forwarders and filters separately. cPanel is useful for a system administrator to manage their content as an advanced tool, but it is very complex for end-users to understand the backup process. On the other hand, CyberPanel provides a user-friendly backup system with self-explanatory GUI.

CyberPanel

 

Create backup of your website

 

CyberPanel allows you to restore your data in one click. There are two types of backups that CyberPanel provides to their end-users. After logging into your CyberPanel account, navigate to Backup > Create Backup and it will generate a backup of your website in one go.

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

Restore backup of your website

 

To restore your website's data, navigate to Backup > Restore Backup where you can select your website's backup file. Your website will be restored in one click.

incremental backup of your website

 

Recently, CyberPanel introduced an incremental backup system, which allows you to create a backup of your website's data, databases and emails separately. The purpose of the incremental backup is to reduce repetition of backed up content. It gives you free space at the server level to increase efficiency and reduced bandwidth cost, in case incremental backups are stored remotely.

setup incremental backup destinations

 

Incremental backup destinations include: Local (default destination), SFTP  (Server IP Address required) and S3 (AWS S3 key required).

Step 6: Stage Your WordPress Site

Digital businesses use staging to test their websites outside of the production environment whenever they need to make changes to their websites. Website changes involve risk. A staging feature helps developers to make changes in a secure environment where your live website will not be impacted. After careful testing, the QA team allows the changes to go live to the website.

cPanel

This feature is not available in cPanel.

CyberPanel

CyberPanel's WordPress Staging Feature allows you to test your websites in a secure environment and then pushes it live when you are fully satisfied with the changes. The staging feature reduces the chances of insecurity, loss of data, bugs, and general failures by keeping the testing phase-out of production. This feature has increased the overall efficiency of end-users' websites.

wordpress staging option in cyberpanel

 

The first step in staging is to clone the website. Navigate to Main Dashboard > Websites > List Websites > Manage >Clone/Staging.

domain name for staging

When you click on the Clone/Staging dialog box, enter your domain name, and the clone will be created as child domain, pending DNS validation. Once complete, you can start testing.

sync to master in staging

 

sync website from child domain to master

 

syncing final step to master

 

Second, when testing is complete, you can copy the child domain's content back to the master domain. Navigate to Main Dashboard > Websites > List Websites > Manage > List Domain > Manage/Launch > Copy/Sync to Master.

You have the option of syncing your website by copying complete data, database, or changed files.

Step 7: Manage Email

cPanel

cPanel email system

 

The cPanel Email system offers advanced features to handle hosting accounts. To create an email account in cPanel you need to log into cPanel > Main Dashboard > Email Accounts.

CyberPanel

 

Creating an email address in cyberpanel

CyberPanel's Email system offers some basic features that are very useful for end-users to communicate officially. To create your email account, navigate to Dashboard > Email > Create Email.

 

access webmail portal in cyberpanel

 

After the creation of an email account, you can access the Webmail Portal to send or receive messages. Apart from that, CyberPanel also helps in setting up DKIM, and SPF records along with SSL for email. You can get more deep information in our previous article:

Achieve 10/10 Email score with CyberPanel!


Conclusion

As you can see, anything that you can do with cPanel can be easily achieved in CyberPanel as well. Plus CyberPanel involves little-to-no cost. That is why CyberPanel is a good candidate for the cPanel alternative. From website creation to WordPress installation, everything is super easy and with Incremental Backup, you can sleep in peace.

 

Before reading this document you must read:

  1. Setup MINIO Block Storage Server.
  2. Configure MINIO Node.

By the time you read this document, I assume that you have already setup MINIO Block Storage Server and Configured it in Cloud Platform.


Step 1: Create Backup Plan

Backup plans are starting point for your backups to MINIO Block Storge Server. Backup plan define following things:

  1. Frequency: How often this backup should run (Daily | Weekly)
  2. Retention Days: How many days a backup should be kept.
  3. Domain: Websites on your CyberPanel that should be included in this backup plan.

To create backup plan visit:

https://platform.cyberpanel.net/s3/<Server Name>/manage/createBackupPlancreateBackupPlanMINIO

Replace server name with name of your server in Cloud Platform. Configure your plan and click Create Plan. Now depending upon your backup frequency backups will be scheduled to send to MINIO Object Storage Server. You can also force run backup at any point in time.


Force Run Backups

Backups are usually scheduled to run daily or weekly, but you can force run them at any point in time. To force run a backup visit:

https://platform.cyberpanel.net/s3/<Server Name>/manage/listBackupPlansMINIO

From there you can force backup to run at current point in time.


Backup Logs

Backup job runs in background, for any backup plan you can view logs at:

https://platform.cyberpanel.net/s3/<Server Name>/plansMINIO/<Plan Name>

Replace Server and Plan name with Server and Backup plan name respectively.

MINIO Node can be configured from Cloud Platform. Register your self on cloud platform if you haven’t already, once registered you need to connect your server from here (Make sure you are on version 1.7.5 or above, you can visit upgrade instructions)


Add MINIO Node

Once your server is connected to Cloud Platform, you need to add at least one MINIO node. Go go https://platform.cyberpanel.net/s3/"Server Name"/minioBackups.  To add servers 3 parameters are required. (Replace Server Name with name of your server within Cloud Platform)

You can get all these parameters by reading Setup MINIO Block Storage Server.

 

If added successfully it should appear in the Current Servers table.

Next: Configure Backups

 

MINIO is an opensource object storage server with AWS S3 compatible APIs. We've already implemented AWS S3 and DigitalOcean Spaces Backups. With MINIO you can self host a block storage server for automated backups.


Create MINIO Configuration File

This guide works on Centos 7.x and Ubuntu 18.xx. We need to create Systemd service for minio so that it can run in background.

First create new file at /etc/default/minio and paste following in it:

# Volume to be used for Minio server.
MINIO_VOLUMES="/tmp/minio/"
# Use if you want to run Minio on a custom port.
MINIO_OPTS="--address :9000"
# Access Key of the server.
MINIO_ACCESS_KEY=Server-Access-Key
# Secret key of the server.
MINIO_SECRET_KEY=Server-Secret-Key

Create Systemd service for MINIO

Download MINIO binary and make it executable.

wget https://dl.minio.io/server/minio/release/linux-amd64/minio
cp minio /usr/local/bin/
chmod +x /usr/local/bin/minio

 

Create new file at /etc/systemd/system/minio.service and paste:

[Unit]
Description=Minio
Documentation=https://docs.minio.io
Wants=network-online.target
After=network-online.target
AssertFileIsExecutable=/usr/local/bin/minio

[Service]
WorkingDirectory=/usr/local/

User=minio-user
Group=minio-user

EnvironmentFile=-/etc/default/minio
ExecStartPre=/bin/bash -c "if [ -z \"${MINIO_VOLUMES}\" ]; then echo \"Variable MINIO_VOLUMES not set in /etc/default/minio\"; exit 1; fi"

ExecStart=/usr/local/bin/minio server $MINIO_OPTS $MINIO_VOLUMES

# Let systemd restart this service always
Restart=always

# Specifies the maximum file descriptor number that can be opened by this process
LimitNOFILE=65536

# Disable timeout logic and wait until process is stopped
TimeoutStopSec=infinity
SendSIGKILL=no

[Install]
WantedBy=multi-user.target

# Built for ${project.name}-${project.version} (${project.name})

 

Replace User=minio-user and Group=minio-user as required. (Make sure that this user have write access to your volume path)

Generate SSL for MINIO:

openssl req -newkey rsa:1024 -new -nodes -x509 -days 3650 -subj "/C=US/ST=Denial/L=Springfield/O=Dis/CN=www.example.com" -keyout ~/.minio/certs/private.key -out ~/.minio/certs/public.crt

Enable and start MINIO:

systemctl enale minio.service
systemctl start minio

Now you should be able to access MINIO at https:// IP Address :9000/. You can login using your MINIO_ACCESS_KEY and MINIO_SECRET_KEY that you set above in configuration file.

Next: Configure MINIO Node

CyberPanel v1.7.6 and above supports automated backups to DigitalOcean Spaces. Spaces backups are configured through cloud platform. Register your self on cloud platform if you haven't already, once registered you need to connect your server from here (Make sure you are on version 1.7.6 or above, you can visit upgrade instructions)


Step 1: Setup access to DigitalOcean Spaces

Go to DigitalOcean Apps &API section and generate new keys. Make sure you create keys under Spaces access keys.

Also create at least one space, spaces will be used to store backups. Once account is configured note down its Access key ID and Secret Access Key.


Step 2: Configure DigitalOcean Keys on Cloud Platform

To configure DigitalOcean Account on platform visit:

https://platform.cyberpanel.net/s3/<Server Name>/doHome

Replace server name with name of your server in Cloud Platform. Enter your DigitalOcean Access key ID and Secret Access Key and click Connect Account. You are now ready to create your backup plans.


Step 3: Create Backup Plan

Backup plans are starting point for your backups to DigitalOcean Spaces. Backup plan define following things:

  1. Spaces: DigitalOcean Space to use for this backup plan.
  2. Frequency: How often this backup should run (Daily | Weekly)
  3. Retention Days: How many days a backup should be kept.
  4. Domain: Websites on your CyberPanel that should be included in this backup plan.

To create backup plan visit:

https://platform.cyberpanel.net/s3/<Server Name>/manage/createBackupPlanDO

Replace server name with name of your server in Cloud Platform. Configure your plan and click Create Plan. Now depending upon your backup frequency backups will be scheduled to send to DigitalOcean space. You can also force run backup at any point in time.


Force Run Backups

Backups are usually scheduled to run daily or weekly, but you can force run them at any point in time. To force run a backup visit:

https://platform.cyberpanel.net/s3/<Server Name>/manage/listBackupPlansDO

From there you can force backup to run at current point in time.


Backup Logs

Backup job runs in background, for any backup plan you can view logs at:

https://platform.cyberpanel.net/s3/<Server Name>/plansDO/<Plan Name>

Replace Server and Plan name with Server and Backup plan name respectively.

chevron-down