Automatically Backup Your Website/Blog to Dropbox

Most of you who read this must be Bloggers or Website owners and would be really careful in terms of website security, so am I. However, hackers don’t really send you warning before hacking your website. I did publish a post few days back informing you how to prevent malicious URL requests to your site. That would prevent injection of malicious codes to your site. Also, you can change the prefix of your database tables to prevent MySQL injection attacks (it is “wp_” by default for WordPress Blogs). This is just a part of precaution methods, but there could be several other methods that can be used to hack a website.

Not long back did we see that Digital Inspiration, one of my favorite Technology Blog was hacked and in a tweet, Amit Agarwal mentioned about it. He also wrote

On July 1st, the hacker stepped on the gas and deleted every single file /website that was hosted on my web server.

Well, he perhaps had the backup of file and restored them as soon as possible. This shows how important it is to backup files on your web server. If you are on HostGator, you need not worry much about backups as they are automatic. However, not all web hosts offer that and you need to do it manually. Downloading backups everyday would be a tough job and if you backup all files to your own server, it would make no sense as they might get deleted once your site is hacked.

In such cases, you may wish to backup all your files to Cloud, the best solution could be Dropbox. Int this post, I would like to tell you about a web service which automatically backs up files on your server to Dropbox. You can use Backup Box for this purpose.

Get a Dropbox account from here and get a Backup Box account from here.

Once you have that done, you can head over to Backup Box and click on “Click on Connect”button. Aftert this, you need to select the location from where you would like the file to be backed up. In this case, you must select “FTP”. If you wish to backup your database, you need to select “MySQL’.

backupbox

Once that is done, you now need to enter the FTP details that you use to connect to your server. The port is usually 21, but if that does not work, you can use “20″. You will find these details on your cPanel.

FTP Details

Click on “Add this connector” and proceed to the next step where you need to select the folder on your server that you wish to be backed up. If you wish the whole site to be backed up along with any add-on domains (if present), you must select the public_html directory.

 backup wordpress blog

Once this is done, connect your Dropbox account with Backup Box and then you can schedule the backup by specifying the details as shown in the image below:

Schedule WordPress Backup

Doing this will automatically backup files on your server to your Dropbox account. If you have automated Database backup using a WordPress plugin, the backed up Database file will also be synced with your Dropbox account.

This ensures that even if your site is hacked, you can restore is without any hassle, If you have any alternatives to do this, please let me know in the comments section :)

  • http://www.antonkoekemoer.com/ Anton Koekemoer

    Hi Lalit,

    Truly a great piece of advice – When it comes to hard- and software alike it’s important to have regular back-ups. And with hours spent on building and maintaining a website you should most definitely make a backup. I would recommend this to any person still busy experimenting with technology and too afraid to try something new and break their website.

  • http://www.technocruze.com/ Abhisek Das

    This is something interesting and would dump the space and loading time issued by other wordpress database backup plugins. I have never explored Dropbox’s features as I always use Sky Drive for cloud storage, though this thing dragged my hands to use this automatic dropbox backup! Thanks for the share.

  • http://tintingsydney.com.au/ Dean Collins

    Lalit,
    Dropbox is like an online hard drive sharing. It’s very useful in my case as I am a freelance writer. Thank you for your very useful post.

  • http://www.careNfashion.com/ Adil

    Lalit Indoria as you mentioned that website hosting with Host Gator gets automatic security solution, Then why we need this step? Does the automatic security of Host Gator has some lapses? Thank

    • http://www.blogotechblog.com Lalit Indoria

      You can not rely on them, they refused to provide backup to one of my friends!

  • http://www.cubbiesforkids.com.au/ BarryCrow

    Dropbox has saved me from the big stress I had in the past. It’s a great way of sharing files through online. It is like sharing your folder to another computer on a local area network.