Drupal is one of the popular open source content management system which helps you to build everything from personal blogs to enterprise applications. Because of its popularity, the probability of the Drupal site getting hacked is also very high.
You can do lots of things while developing a Drupal website to ensure consistency and surpassing user experience. Drupal offers several benefits related to flexibility. It allows developers to customise every minor thing.But if you forget to have consistent and regular backup all these benefits would just take a flip.
In this post i have mentioned both ways to backup a drupal site that is manually as well as automatically. Lets have a look..
How to back up your
Drupal site manually?
There are two main sections you need to backup
in your Drupal site; the files and database. Backing up the files is pretty
straightforward. You just have to perform 2 main steps. They are:
- Execute your FTP client so that you can access the hosting server.
- Once you get the access to server, download the Drupal directory and save it in a safe location. Using Cloud solutions like Dropbox provides additional safety for the directory.
To back up the entire database, you will have to use phpMyAdmin. Here are the steps:
- First step is to gain the access to phpMyAdmin from cPanel.
- Once you get the access to phpMyAdmin, you can select the database to back up by just clicking on it. All the tables found in the database will be opened.
- You will find an option called “Export” on the top. Just click on that.
- Then click on Custom which displays all the options. Make sure that you have selected all the tables.
- Under “Object creation options” you will find an option to configure all the existing tables to be replaced on database import. Mark the box with “Add drop table” statement.
- Then click on “Go” to save your database on to the desired location.
How to back up your Drupal site automatically?
- Manual backup is not just time consuming but also you need to have the presence of mind to back up without forgetting. Fortunately, the platform offers automatic backup through the use of modules.
- Backup and Migrate module is the leading module which is being used by more than 250,000 sites today. The module supports several backup destinations like Dropbox, FTP, Amazon S3, email, etc. It also allows you to schedule backups and to restore the databases.
M2Soft is a leading Web development company which provides the best Website development services for any kind of businesses.