Linux Archives - CloudMinister

The web hosting services are useful in getting some space for your website or online platform on the internet. Many individuals are interested in availing of the hosting services by owning a complete VPS server. If you are going to compare the VPS server with shared hosting plans, you can find lots of differences based on multiple factors such as performance. 

When it comes to finalizing the decision, you have to focus on selecting an operating system as well. Mainly there are two types of operating system available – Linux VPS server hosting and Windows VPS server hosting. Both types of operating systems are useful in their ways. Everyone does not have complete knowledge regarding such a thing and starts getting confused. 

With the help of information given in the upcoming paragraphs, you can easily differentiate both and figure out the suitable one. 

Linux-vps-server-vs-windows-vps-server

Key Difference 

Here, we will compare both Linux VPS server and Windows VPS server hosting based on multiple factors. 

1.  Performance 

When it comes to serving online, then performance plays an important role. Everyone is looking for a platform that can help them by working quickly and fulfilling their requirements in no time. It is also dependent on the selection of the server or hosting type. 

In case you are choosing the option of the Windows VPS server, then you have to reboot the server with every patch. Along with it, during the heavy traffic conditions or the availability of several tasks, the server may face downtime. Mainly these types of hosting plans are based on GUI (Graphical User Interface). 

If you proceed with the Linux VPS server hosting, you don’t have to focus on rebooting the server while facing heavy traffic. The server can easily change the configurations and other settings as per the requirements without restarting anything. 

2.  Control Panel 

With the help of a control panel, the website owners are capable of making things better, such as – customizing the settings, adding features to the website, and much more. Both types of hosting plans are having a different kind of control panels. The Windows VPS server hosting plans are associated with the usage of Plesk. Plesk has several features by which you can easily control the website. While using Plesk, you are capable of running the Windows version of MySQL, Apache, PHP stack, and Linux. For security, it has options of Docker, Git, and some other extensions as well. 

However, the Linux VPS server hosting plans are available with the cPanel as the control panel. The cPanel is available with several features by which you can make lots of things easier and install multiple applications on the web servers such as – WordPress and Drupal. Using this particular control panel makes it easier for everyone to create a website without using any coding knowledge. All you have to do is install a website building application with a single click only. 

linux vs windows vps server

3.  Server Accessibility  

All users love to get complete control over the server by which they can easily achieve all objectives. VPS hosting plans are also known for providing better control. If you focus on the Linux VPS server hosting plans, you will get complete server access on both SSH (Secure Shell) and FTP (File Transfer Protocol). In case you are working with the Windows hosting plans, then you don’t get full access. Generally, these plans allow only FTP access. Here, you do not have control over SSH. 

Read More:  Boost WordPress Website Performance in 20 Minutes

4.  Usage 

If we talk about the usage of a control panel or hosting servers, it depends on the users’ skills and knowledge. People who don’t have technical knowledge may find the Windows VPS easier to manage. It works on the basis of a Graphical User Interface. On the other hand, the users of Linux VPS server hosting need to use technical knowledge. Here, we can say, the option of Linux VPS hosting is not good for beginners. 

5.  Security 

Cybercrimes are increasing with day to day activities. Here, everyone tries to make sure they have the best sources where they can get quality cybersecurity. Due to it, all individuals want to choose the best server hosting plan by which they can easily prevent cybersecurity breaches. In the case of security, you can find the Linux VPS server superior while dealing with malware and spyware. On the other hand, a Windows VPS server hosting is also good. Here, users can hide sensitive files easily. 

These are some key facts by which you can easily understand the difference between both Linux VPS server and Windows VPS server. For more details, you can get help from professionals.

How to Update the Webmail Version in the Plesk Panel?

 

Plesk distributes a version of the mailable standard edition as part of its comprehensive provisional platform. Those using mail enable in a Plesk environment may wish to upgrade the standard edition version with Plesk. They may also want to upgrade to professional, Enterprise, and premium versions for enhanced features.  This article explains the options available to ensure you are wishing. 

Plesk has advised mailable that version 9 of mailable integrates with Plesk without any known issues. MailEnable’s testing confirms this. Version 10 of the mailable has been released. The standard upgrading version is at no charge and can be completed at any time. In case, you find any issue while upgrading webmail, then one can conveniently reach windows server support to resolve it in the flick of seconds.

 

Update Webmail Version in Plesk Panel

Step 1 – Login to Plesk

Type in your username and password and then click login. If you want to see the Plesk interface in a specific language,  select it from the interface language menu before logging in. 

Step  2 – Tools & Settings

After login, you will find the menu option on the left side; from these, select the “Tools & Settings” option.

Step 3 – System Updates

After selecting the tools & Settings on the right side, you will find various options. Search for server management and Select system updates options over there. 

Update Webmail Version in Plesk Panel

Read More: Update Database Administrator Credentials in Plesk Panel

Step 4 – Select webmail software

After that, you have to select the needed webmail software that you want to install and then press. 

For Linux – Select Horde and Round cube.

For windows – Select mailable and Horde.

You can search whatever version you want in the search engine. By these steps, you can update the mail version in the Plesk panel.

Upgrade to a professional or Enterprise version requires a paid license key, which should be bought from mailable directly.  After purchasing the license key and applying it, the functionality of the updated version will be unlocked.

How to Install Plesk Linux based System

Plesk is enterprise level Reliable Linux VPS server hosting web panel which provide very useful tools for user end as well as for developer or system admin end. This web panel is very easy to host website and web application. It also provide features of reseller , vendor for web server as well as for e-mail services and mostly useful for DNS entries on the server.

Here you have to follow some steps to install Plesk on your server few of them are given below;

1- Perquisites 
2- Installing Plesk 
3- Verify on browser 

Perquisites: First of all you require fresh OS and  must have to check your system server configuration by follow some commands which given below

a)-  yum update (For centos server)
apt update  (For Ubuntu server)
b)-  cat /etc/os-release  (For checking os)
c)-  netstat -tunlp (For checking ports)
d)- df -h (For checking disk space)
e)- free -h (For checking ram space)
f)- yum install wget (For centos server)
g)- apt install wget (For Ubuntu)

Installing Plesk: Now came to point start installing  plesk on server. Here you must have to follow some steps as I do

#   wget https://autoinstall.plesk.com/plesk-installer
#   chmod +x plesk-installer
 ./plesk-installer –web-interface

Installation is complete here and have to move next step  for log in Plesk panel  Here we only need
Username: root
Password: which is same as system root password

After log in into panel we see panel screen here several options present implementing in website hosting.

 

 

How to create mail account in Plesk panel

Plesk  is a control panel which can be used in both operating systems. We can use plesk panel in Linux VPS server as well as in Windows VPS server. It is also used for creating e-mail accounts on server . Here we are sharing the steps to create a mail account in Plesk panel.

Step 1.  Today we are going to do very easy task to create mail id’s in plesk panel click Website &  Domain –> Mail

Step 2. Next click on create email address  and fill information like mail name , password and save it.

Conclusion

Finally you have created e-mail  account successfully in Plesk panel.

How To Create and Install SSH Keys on the Shell

SSH Key Authentication

1.1 SSH Keys-An Overview

SSH keys are a way to identify trusted computers without involving passwords. You can generate an SSH key and add the public key to your GitHub account by following the procedures outlined in this section.

1.2 How to generate ssh key on Linux

Run all these command on your local system

# ssh-keygen

( Users need to press ENTER in order to save the file to the user home )

Upon entering the primary Gen Key command, users need to go through the following drill by answering the following prompts:

Enter the file where you wish to save the key (/home/demo/.ssh/id_rsa) : enter

Enter passphrase: enter

The output should be like this :

Your identification has been saved in /root/.ssh/id_rsa.
Your public key has been saved in /root/.ssh/id_rsa.pub.
The key fingerprint is:
38:16:50:fe:8d:da:02:bb:46:1b:66:0c:10:8e:81:2d root@server1.example.com
The key’s randomart image is:
+–[ RSA 2048]—-+
|+o … |
|E.. o |
|.+ o |
| . + o |
| o. + S . |
| *+ + |
| +.oo . |
| o. . |
| .. |
+—————–+

Now we have generated two files ( id_rsa and id_rsa.pub ) and we need to check permission for both files. The permission should be 644 for both. if permission didn’t assigned accordingly then we have to assign.

# chmod 644 id_rsa
# chmod 644 id_rsa.pub

Now we need to locate key file on the Linux VPS server which one we want to access without password.

# ssh-copy-id  username@server IP address

Now try to login using key file.

# ssh -i id_rsa username@serverIPaddress

Linux vs windows : which operating system is best your website hosting ?

Website hosting is a kind of internet hosting service which give you a chance to release your website on internet. It is also known as virtual host. It will be usable for all those people who run any organization & for some individuals. It plays a very vital role in the world. It is one of the best way to increase the popularity, & starting a new online business for everyone. Website hosting needs some services like Apache for web server, MySQL service for database, PHP service for design & Operating System.

Website hosting offer many different types of hosting:

1.> Cloud hosting

2.> Dedicated hosting

3.> Shared hosting

4.> VPS hosting

5.> WordPress hosting

 

What is Linux Website hosting?

Linux website hosting is type of web hosting which we can perform on Linux OS and we can use technology for website hosting or virtual hosting on Linux is called LAMP which stands for Linux, Apache, Mariadb & PHP. This OS is highly secure, reliable, flexible, scalable, open-source, etc. In this OS we can do this on command line or install the panels on OS & then manage the website on many platforms &  Linux VPS Server will support many panels like plesk, cPanel, WHM, CWP panel, etc.

What is Windows Website hosting?

Windows website hosting is a type of hosting which we can perform on Windows operating system & in windows to setup the website is easily. It uses a technologies i.e .Net, MSSQL, ASP, Xampp, etc. This OS is also highly secure, reliable, flexible, scalable, but costly, etc. The website which we host by windows OS are only support plesk panel.

Linux Web hosting VS Windows Web Hosting

Linux and Windows both are different kind of OS (Operating Systems) which are based on Unix and Microsoft. Both of the operating systems will provide great and good features for website hosting and both of us recommended for website hosting. And now, we can compare both of us with these features & the features are:-

1.> Software-:

According to this feature, Linux is a open-source software which provide multiple options for cheap hosting provider , not single option and windows is isn’t an open-source software , not provide multiple options for hosting or provide only single option.

2.> Security -:

According to this feature, Linux operating system is highly secure than any other operating system including windows, so that the website is secure from viruses, online attacks, malicious attacks, etc. And windows is also highly secure but its changes & working is so easy that why it is not secure like Linux.

3.> Cost -:

According to this feature, Linux will fulfill the requirements and give resources & services at free of cost or low cost but windows will get high cost  for the service, resources & fulfill the requirements or users want to purchase the license for each service.

4.> Source Code -:

According to this feature, Linux access the source code and alter it according to the user need i.e the user access the source code of kernel & alter acc. to him. so the bugs in the OS will fixed easily but in windows only selected or few members can access the source code.

5.> Flexibility -:

According to this feature, Linux website hosting is more flexible than windows website hosting because the security of Linux is high & excellent that the website is maintained. And windows security is also high but not better than Linux so it is less flexible than Linux.

6.> Working -:

According to this feature, windows working is very easier than Linux because all the working in windows is easily configured. And in Linux the working is so harder than windows because all the working is done by commands or done manually so the worker has face some problems & editing manually also.

7.> System Speed -:

According to this feature, Linux operating system speed is faster than windows speed because Linux dedicated server management run 90% of the world fastest supercomputers & windows will run only 2-3% of the world supercomputers not fastest supercomputers.

8.> Reliability -:

According to this feature, Linux website hosting is more reliable than windows website hosting because Linux operating system speed is better, performance is better, security is better, etc than windows so we can trust easily or early on Linux website. And windows OS speed, performance, security, etc all are good & great but poor than Linux so it is less reliable than Linux.

9.> Scalability -:

According to this feature, Linux website hosting is more scalable than windows website hosting because all the working in Linux is done manually so the worker can change or modify easily. And in windows website hosting, all the work isn’t manually by worker so the worker wants more time to change or modify so that’s why windows is less scalable than Linux.

10.> Panels -:

According to this feature, Linux uses cPanel, WHM & plesk but windows only use plesk panel. So that we all recommend Linux website because it will work on all these 3 panels & the website hoster has many options & in windows the website hoster has only one option for panel.

 

Conclusion:

Now in this document we discuss the difference between Linux & windows website hosting & choose or decide which OS is best for website hosting & finally, according to these features, we all must recommend “Linux” is the best & better operating system for website hosting than windows.

How to install and configure LAMP(Linux, Apache, Mysql/MariaDB, Php) with WordPress CMS on Ubuntu 16.04.

WordPress is a popular open source Content Management System (CMS), which allows you to build dynamic websites and blogs. WordPress is the most popular blogging system on the web and allows updating, customizing, and managing the website from its back-end CMS.

In this blog, we are going to configure WordPress with LAMP in Ubuntu 16.04 for that the Prerequisite is Ubuntu 16.04 server.

Contents

1. Prerequisite

2. Install Apache Server 2.4.18

3. Install MySQL 5.7 

4. Install Php 7.0

5. Install WordPress File

6. Creating a WordPress Database in MYSQL

7. Test WordPress

  1. Prerequisite

Firstly required Ubuntu 16.04 VPS along with root privileges or you can also use sudo in starting of the commands.

Several commands are used to check the system status for the installation of WordPress CMS on the server.

# df -h (To check the status of memory in the system.)

#cat /etc/os-release(To check the operating system of the server.)

# apt-get update(To update all the packages in server.)

  1. Install Apache Server 2.4.18

Firstly install Apache server i.e. a web server that helps to host websites and blogs.

Now the next step is to install the apache server by using the command:

# apt-get install apache2

Check the status with the following command:

# systemctl status apache2

  1. Install MySQL 5.7

MySQL is a software used to create databases, stores, and get data when requested. MySQL is used by WordPress to store a database of its users. 

Now the next step is to install MYSQL and link it with PHP.

# apt-get install mysql-server php7.0-mysql

One dialog box is prompted for MySQL password, give the root password.

Now complete the MYSQL installation,

# mysql_secure_installation

Here, we have to configure the basic details of MYSQL and it asked for a password, enter the MYSQL password.

Would you like to setup validate password plugin? N (Use to set up  password policy)

Change the root password? N

Remove anonymous users? Y

Disallow root login remotely? Y

Remove test database and access to it? Y

Reload privilege tables now? Y

  1. Install PHP 7.0

WordPress requires all the components of LAMP and the last PHP 7.0 to be installed.

# apt-get install php7.0 libapache2-mod-php7.0 php7.0-mcryptphp7.0-xml php7.0-curl php7.0-json php7.0-cgi

Check that php is installed correctly or not, For that remove default file from /var/www/html directory i.e. index.html and create new file i.e. info.php.

# cd /var/www/html

# nano info.php

And enter the sample code in info.php file,

<?php

phpinfo();

?>

Restart the apache server.

#systemctl restart apache2

After that open any browser and give IP i.ehttp://ip_address_server/

and here check the default page for PHP.

Now remove the index.php file,

# rm /var/www/html/index.html

  1. Install WordPress File

Once the configuration of the LAMP stack is completed, now go proceed with installing the WordPress file.

Go inside the html folder

# cd /var/www/html

And download the latest version of WordPress CMS from the internet,

#wget -c http://wordpress.org/latest.tar.gz

Now use tar to unzip the downloaded WordPress archive.

#tar -xzvf latest.tar.gz

After that set the appropriate file permissions,

# chown -R www-data:www-data /var/www/html

#chmod -R 755 /var/www/html

  1. Creating a WordPress Database in MYSQL

Before proceeding with the installation of WordPress we have to create Database for WordPress in MySQL console.

# mysql -u root -p

Enter the password of MySQL and after that create a new database for WordPress.

# mysql>CREATE DATABASE WordPress;

Now create a new user and grant all privileges to the WordPress database.

# mysql>GRANT ALL PRIVILEGES on WordPress.* to 

  ‘username’@’localhost’ IDENTIFIED BY ‘password’;

# mysql>FLUSH PRIVILEGES;

After that exit the MySQL console.

# mysql>exit

  1. Test WordPress

Now after all the configuration done successfully, Restart the Apache webserver.

# systemctl restart apache2

After the server is restarted go in any browser and type http://ip_address/

And then the installation page is open here i.ehttp://ip_address/wp-admin/

Now configure the basic details. And after the administrator prompt is open. Launch the website in its control panel and refresh the URL.

 

CONCLUSION – After the above installation you will we able to create a blog by using WordPress CMS in Ubuntu VPS.

How to install and configure LAMP (Linux,Apache Mysql/MariaDB,Php) with Joomla CMS in Ubuntu 16.04.

Joomla is one of the most popular and open source Content Management System(CMS), which is used to build websites and online applications. It is free and extendable which is separated into front-end and back end templates.

In this blog we are going to configure Joomla with LAMP in Ubuntu 16.04 for that the Prerequisite are Ubuntu 16.04 server.

Contents

  1. Prerequisite
  2. Install Apache Server
  3. Install MySQL
  4. Install Php
  5. Install Joomla File
  6. Creating a Joomla Database in MYSQL
  7. Test Joomla

1. Prerequisite

Firstly required Ubuntu 16.04 VPS along with root privileges or you can also use sudo in starting of the commands.
Several commands are used to check the system status for installation of joomla CMS on the server.

# df -h (To check the status of memory in the system.)

#cat /etc/os-release(To check the operating system of the server.)

# apt-get update(To update all the packages in server.)

2. Install Apache Server

Firstly install Apache server i.e. a web server that help to host websites and blogs.
Now the next step is to install apache server by using command.

# apt-get install apache2

Check the status with,

# systemctl status apache2

3. Install MySQL

MySQL is a software used to create databases, stores and get data when requested. MySQL is used by wordpress to store database of its users. 

Now the next step is to install MYSQL and link it with PHP.

# apt-get install mysql-server php7.0-mysql

One dialog box is prompted for MySQL password, give the root password.

Now complete the MYSQL installation,   

# mysql_secure_installation

Here, we have to configure the basic details of MYSQL and it asked for password, enter the MYSQL password.

Would you like to setup validate password plugin? N (Use to setup     password policy)

Change the root password? N

Remove anonymous users? Y

Disallow root login remotely? Y

Remove test database and access to it? Y

Reload privilege tables now? Y

4.Install PHP

Joomla requires all the components of LAMP and the last PHP 7.0 to be installed.

# apt-get install php7.0 libapache2-mod-php7.0 php7.0-mcrypt   php7.0-xml php7.0-curl php7.0-json php7.0-cgi

Check that php is installed correctly or not, For that remove default file from /var/www/html directory i.e. index.html and create new file i.e. info.php.

# cd /var/www/html

# nano info.php

And enter the sample code in info.php file,

<?php

phpinfo();

?>

Restart the apache server.

#systemctl restart apache2

After that open any browser and give IP i.ehttp://ip_address_server/

and here check the default page for php.

Now remove the index.php file,

# rm /var/www/html/index.html

5. Install Joomla File

Once the configuration of LAMP stack is completed, now go proceed with installing Joomla file.

Go inside the html folder

# cd /var/www/html

And download the latest version of Joomla CMS from internet,

#wgethttps://downloads.joomla.org/cms/joomla3/3-7-5/Joomla_3-7.5-Stable-Full_Package.zip

Now install unzip to be able to unzip the downloaded archive.

# apt-get install unzip

Now unzip the downloaded Joomla archive.

#unzip Joomla_3-7.5-Stable-Full_Package.zip

After that set the appropriate file permissions,

# chown -R www-data.www-data /var/www/html

#chmod -R 755 /var/www/html

6. Creating a Joomla Database in MYSQL

Before proceeding with the installation of Joomla we have to create Database for Joomla in MySQL console.

# mysql -u root -p

Enter the password of MySQL and after that create a new database for Joomla

mysql>CREATE DATABASE Joomla;

Now create a new user and grant all privileges to the Joomla database.

mysql>GRANT ALL PRIVILEGES on Joomla.* to 

‘username’@’localhost’ IDENTIFIED BY ‘password’;

mysql>FLUSH PRIVILEGES;

After that exit the MySQL console.

mysql>exit

7. Test Joomla

Now after all the configuration done successfully, Restart the apache web server.

# Systemctl restart apache2

After the server is restarted go in any browser and typehttp://ip_address/

And then the installation page is open here i.ehttp://ip_address/instalation/

Now configure the basic details. And after the administrator prompt is open. Launch the website in its control panel and refresh the URL.

CONCLUSION:

After the above installation, you will be able to use Joomal CMS to manage your website content in your VPS server.

How to install and configure Linux Malware Detect (LMD) on Centos Web Panel(CWP) 7 with alert?

Linux Malware Detect(LMD) is a malware detector and scanner for Linux, designed for shared hosting environments. LMD is released under GNU GPLV2 license, it can be installed on cPanel, WHM and Linux environments with together other detection tools such as ClamAV. 

CWP doesn’t provide LMD service in it’s free version, it asks to take CWP pro for LMD service. You can install it from the terminal and scan for malware present in your server.

Prerequisite

CWP

Terminal access

Root user (If not use sudo)

ClamAV

Install Linux Malware Detect (LMD)

Linux Malware Detect is not available in CentOS or Epel repository, you need to install it manually from source, by using the following command:

First go inside tmp directory,

# cd /tmp

Now download and extract it from the source with the help of wget command:

# wget http://www.rfxn.com/downloads/maldetect-current.tar.gz

# tar -xzvf maldetect-current.tar.gz

After downloaded go inside the maldetect directory and run the install script with the following command:

# cd maldetect-*

# ./install.sh

Now make a symlink of the maldet command in the /bin/maldet

# ln -s /usr/local/maldetect/maldet /bin/maldet

# hash -r

Configure Linux Malware Detect (LMD)

LMD has been installed into the /usr/local/maldet/ directory. Open the directory and edit the configuration file conf.maldet with vi editor:

# cd /usr/local/maldetect/

# vi conf.maldet

In this file, edit the following lines to enable various feature and alerts
Enable email alert by changing the value to 1 :

email_alert=”1”
Type your email address :
email_alert=”your@domain.com

We will use the ClamAV clamscan binary as default scan engine because it provides a high-performance scan on large file sets. Change value to 1:
scan_clamscan=”1”
Next, enable quarantining to move malware to the quarantine automatically during the scan process. Chang value to 1:
quarantine_hits=”1”
Change value to 1, to enable clean based malware injections.
quarantine_clean=”1”

Save and exit, you can also change other values based on your requirement.

Testing Linux Malware Detect(LMD)

For testing LMD manual scan with the maldet command, you will use the maldet command to scan the web directory ‘/var/www/html’.
Download some malware file with the help of following commands in web root directory:
# cd /var/www/html
# wget http://www.eicar.org/download/eicar.com.txt
# wget http://www.eicar.org/download/eicar_com.zip

Next, scan the web root directory with the maldet command:

# maldet -a /var/www/html

Check the scan report with the following command:

# maldet –report 18882——-*

Other LMD Command

To ensure Maldet is up-to-date, run the command below:

# maldet -u


You can see the details of the option available by running the following command:

# maldet -h


Perform a scan for specific file extension only:

# maldet -a /var/www/html*.php

Get a list of all reports:

# maldet -e list


Restore files from the quarantine directory.

# maldet -s SCANID

Enable monitoring of a directory.
# maldet -m /var/www/html

CONCLUSION-

The above configuration will show how to configure Linux Malware Detect in CWP and scan for malware data in your server.

How to create Automated Backup for website files with shell script?

Backup

With the help of shell script and crontab you can take automated backup in server with the help of following the document.

Archive the content

Backing up your files using tar is very simple using the following command: 

# tar -cvpzf /backup/backupfilename.tar.gz /data/directory

A real example would be backing up the HTML folder for your website, my case:

# tar -cvpzf /backup/file_name.tar.gz /var/www/html

Tar command explained

tar = Tape archive

c = Create

v = Verbose mode will print all files that are archived.

p = Preserving files and directory permissions.

z = This will tell tar that to compress the files.

f = It allows tar to get the file name.

Now create backup script with the help of vi editor.

Create Backup Script

Now let’s add tar command in a bash script to make this backup process automatic. Also it is good to add some dynamic value in the name to make sure there is no overwriting of backup files. 

E.g. Create the file using the vi editor and paste below script.

# vi /backup.sh

Paste the following script and change your details.

#!/bin/bash

TIME=`date +%b-%d-%y`                                                # This Command will read the date.

BK_FILENAME=backup-domainname.com-$TIME.tar.gz    # The filename including the date.

SOURCE=/var/www/html                                                 # Source backup folder.

DESCT=/backup                                                           # Destination of backup file.

tar -czf $DESCT/$BK_FILENAME $SOURCE

Note: The only risk that can occur is to get out of disk memory if the source folder is big, but you can configure it by removing file after 30 days or any number of days with the help of the find command.

find /backup -type f -name ‘*.gz’ -mtime +15 -exec rm {} \;

Automation

In Linux, we can easily use the cron jobs in order to schedule task and perform the above backup task easily.                The cron jobs line has 6 parts see below explanation: Minutes Hours Day of Month Month Day of Week Command 0 to 59 0 to 23 1 to 31 1 to 12 0 to 6 Shell Command Open crontab editor utility:
#
crontab -e 

Note: the edit rules are similar with vi editor.
Paste the following text in the editor:
# M H DOM M DOW CMND
00 04 * * * /bin/bash /backup.sh
This will run the script every day at 04:00:00.
Check the rules of crontab with the help of the following command:
#
Crontab -l 

CONCLUSION

After the above configuration, you can take backup automatically and remove it in some specific period of time.

Get started with CloudMinister Today