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.
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.
Use your Cyberpanel credentials to log in
You will have to log in to your Google account if you aren't already logged in
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
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.
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
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.
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.
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'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.
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.
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.
To create a website via cPanel + WHM, you would follow these steps:
example.com/WHM
or example.com:2087
)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.
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.
Follow the steps below to create a website on CyberPanel:
admin
is used, or you can give management access to any of your users.)example.com
)SSL
, DKIM
, and DNS Verification
are available with one click, and they are absolutely free.Note: If you want SSL to be successfully issued make sure that your site's DNS is already pointed to the server IP.
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.
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.
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.
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.
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.
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'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 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
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.
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.
Incremental backup destinations include: Local (default destination), SFTP (Server IP Address required) and S3 (AWS S3 key required).
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.
This feature is not available in cPanel.
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.
The first step in staging is to clone the website. Navigate to Main Dashboard > Websites > List Websites > Manage >Clone/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.
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.
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'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.
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:
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:
By the time you read this document, I assume that you have already setup MINIO Block Storage Server and Configured it in Cloud Platform.
Backup plans are starting point for your backups to MINIO Block Storge Server. Backup plan define following things:
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.
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 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)
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.
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
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)
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.
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.
Backup plans are starting point for your backups to DigitalOcean Spaces. Backup plan define following things:
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.
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 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.