Drupal is one of the most efficient content management systems that also increases the efficiency of Drupal Hosting UK. Drupal is used by many webmasters, however in most of the case the webmasters are not aware of the process of taking the backup or restoring a Drupal website. The process that needs to be followed in order to take the backup or restore a Drupal website is mentioned below.

Generating the latest backup files is essential in the following scanarios:

Scenario 1 : When the users upgrade their plan to higher edition, it is recommend to have a backup of the database and other files. In case you encounter any issue during the upgradation process, there are possibilities of loosing the data, therefore it is extremely important to have a backup to protect all the data.
Scenario 2 : Incase if there is any issue in the current server that warrants you to change the hosting provider; in this case it is advisable to have your own backup. When you change the hosting provider, all you have to do is upload the backup file and proceed with the hosting activities. Drupal Hosting UK provides with the perfect platform to manage the hosting activities along with website creation and content management.
Scenario 3 : There is also a possibility that you become the victim of some hacking attack. Therefore as a counteractive measure, a backup is essential; you can still continue working without any delays.
Scenario 4 : If you would like to create a test website of your Drupal installation or the templates and modules, even then getting a backup is highly essential. Preferable in order to avoid any problems, it is recommended to conduct testing in a live environment.

There have been a lot of cases in the past where the entire content on the website was drained as a result of hacks, attacks and also while testing. Therefore taking backups is extremely important.

What is the exact process of taking the backup of your Drupal website?

With the use of a module, the users can take the backup of each file and database and then these backup files can be combined into a single tar.gz file. The files can be restored by uploading them through an FTP client onto the server. Further, SSH using PuTTy to the command directory and enter the following in the command line:


tar -xvvzf drupalbackup.tar.gz

This will extract the files and drupal-backup.sql.gz as well.

In case if you are changing the website location i.e. switching from domainnameA to domainnameB or transferring the data to a sub domain everything mentioned above would be required since the same database would be used. Your website will keep functioning as usual but from a different domain/sub-domain name. However, it must be taken into consideration that the website is still using the same database. In this case, it is crucial to consider some factors. It I important to make sure that the website is functional from the old location, otherwise it would be considered as content duplication and chances are that you may get penalized. In order to avoid that, it is advisable to make a new database by using phpmyadmin. Make the necessary changes to the Drupal config files in a way so that it reads the new database.


Need to know information :

It might be the case that the file is set as read-only by default. If any amendments are made to this file, the file permissions will no longer be writable and this can make you prone to attacks and other security risks

You will notice that the file will have only two lines :

$db_url = ‘mysql://account:[email protected]/dbname’;

$db_prefix = ”;

You will now have to simple replace the dbname (database name) with your database name in phpmyadmin. The user name and password will be same as that of your MySQL account.

You must also maike sure that the latest ‘settings.php’ file also has been uploaded. Since the file is usually set as read-only, the FTP client might not grant you the permission to upload and replace the existing file on the server. In this situation, you will have to ‘delete‘ the file on the server. Now try accessing your website in the browser, you will come across an error that says “Unsupported database type”. When you upload the new settings.php file and refresh the browser, a blank page will be displayed. This points towards the fact that the database isn’t accessible. Now, upload the backup of your database and refresh the browser. This will enable you to access your website normally; and then maximum efficiency can be acquired through Drupal Hosting UK.

Note : In order to make your website data secure, it is important to have your website backup with the use of the Offsite Backup Plan.