Automatically Back Up Your Web Site Every Day

Website Backup with Rsyn If you pay for web hosting in order to run any kind of web-based application—from your WordPress blog to a nameplate site to a file-sharing service to a social media data archive—you need to back up your web server's data the same way you back up your computer's data. On database-driven web sites, there are two kinds of data you want to preserve and restore in case of disaster: the files that make up your site (the PHP/Perl/Python, JavaScript, CSS files, etc), and the contents of your database. Further, any good backup system should make both a local copy and a remote copy of the backed-up data. I run several database-driven sites and applications, including this blog, so my backup system has to be solid. Here's how I have it set up. This method assumes a few things: You're running a LAMP-based web site (Linux, Apache, MySQL and PHP/Perl/Python). You have command line access to your web server via SSH. You know how to make ne...