How to Backup Websites on Your Hosting Server Easily

By 23-02-2015   BloggingDomain HostingSecurityTutorials

How do you backup all your websites on your hosting server? Chances are that you are relying on your hosting provider to backup your site, and probably even have no idea if your site is properly backed up. Complete site backup is important to restore your site in case your site is hacked or there is some other issue which needs a server format.

Server backup

WHM control panel in your hosting account provides an easy way to backup your entire site and system files easily, on a regular basis and in a safe manner. The option will be available for webmasters managing dedicated and VPS servers, and having root access. It ensures that your entire server is backed up on a daily, weekly and monthly basis. Here is how to set it up in WHM.

Log in to WHM as root > Go to Backup > Go to ‘Backup configuration‘. Here you can change the global settings for backup on your server and enable compressed backup files.

backup server

You can choose the scheduling and retention time of these files – which means you can decide whether to back up on a daily weekly or monthly basis and how long and how many copies of these files you want to keep.

backup schedule

You can backup the users accounts and their system files, as well as the databases.

backup database

Configure backup directory

The place used to these backup files on your server is the most important decision to make. Typically the WHM backup configurations tool will backup the files in a folder called/backup which will be located outside the/home folder where all your files are located.

backup folder

You should never select the /home directory to store your backups, as someone getting unauthorized access to your main folder as the user might not be able to have root access, and so might not be able to tamper with your backup files.

It is also important check the option to retain the backups in the default backup directory such that even if you decide to transfer it to a different location, the backups are not deleted.

retain backups

Backups eat storage space

It is a good idea to keep a lot of backup files, but keep in mind that these files are huge – every daily backup on our server consumes one GB of storage space! – so you need to be aware that your paid hosting storage space might fill up very fast. For example if we opt for two daily backups, two weekly backups and two monthly backups – it will fill a 6GB+ of storage space. Since we have 20 GB of storage space in the hosting package, these basic backups will occupy 30% of the storage space. If we decide to store more frequent backups, it can easily fill up 50% of our storage space. So give an optimum balance based on your hosting package.

In addition, we also use Vaultpress to backup WordPress effectively. It is a good idea to keep another copy of your backups, in a location other than your server, and the next article discusses how to create Amazon S3 backups.

Have you checked up the backup settings on your server? Do it now.

 

17 comments on “How to Backup Websites on Your Hosting Server Easily

  1. slickson says:

    thanks for the tip, am using hostgator!

  2. Niloy Basak says:

    thanks for the tricks :)

  3. Akash Yadav says:

    Thanks for the great post and as always enjoyed reading QOT.

  4. Fakharuddin says:

    Thanks for sharing the great post with great tips. This will help me to backup my site regularly.

  5. David says:

    i have 10 GB storage space, so what option i should choose to backup weekly or monthly

  6. Worli says:

    Hello P Chandra,

    I think majority of WordPress users are using shared hosting and WHM control panel is not provided in that. WHM is only available in VPS, correct me if i am wrong?

  7. James says:

    Thanks for the tips. Does this work on shared hosting too?

  8. Ashik says:

    Thanks a Alot Mr.P.Chandra for this Informative Article related to the Backup of the Websites Which is essential in the recent days. I am a Regular reader of the QOT Since past 2 years. you are rocking keep the graph constant. …

    By a Regular QOT reader
    >>>Ashik<<<

  9. Ahmad Rasheed says:

    Informative!
    Backing up your website is the most most important part, i realized it after i lost my data from previous hosting..

  10. Shanmugam Ganesh says:

    I tried one wordpress plugin long back. i dont remember. My database of backup was corrupted. Let me try this method.

Leave a Reply

Your email address will not be published. Required fields are marked *

css.php