Tuesday, September 1, 2009

Fast Backup of Shared Hosting Website

I wrote in my last posts how important it is to create backups of your website data. Today I want to show you how create the whole website data backup, databases backup and files backup.

First, login into your web hosting control panel, and create backup of all your databases. Ensure that process is finished successfully. Database backup files will be stored at one of website folders, usually the name is _dbbackups or something like that.

Second, connect to your website with ssh client and create compressed archive of all your website data (including database backups that you created in the first step): tar -zcvf my-website-backup-file-name.tar.gz html_root, where html_root is a folder that holds all the content of your website.

The last step is to download backup with ftp/sftp client program to your computer. Consider the possibility to burn your backup to DVD/DVD's.


* You must have ssh enabled on your hosting account.