Backup Data Online the Smart Way
Posted by Jon Lee in Efficiency, How-to, tags: backup, Linux, mozy, rsync, web development
In web development, there is nothing worse than having created a website and losing it to a hard drive crash. Luckily, I’ve yet to have a hard drive crash on me but I’ve heard horror stories from countless people. The need to back up your data is very real and but can be a hassle at times.
Offline Backups?
Backing your files onto CD/DVD or another hard drive is nice but in the case of an accident (house fire, flooding) you have the potential of losing all your data and your backups all at once. Backing up data on to a flash drive could potentially work if you keep that flash drive with you at all times but in my opinion, the only way to safely backup your data is to store it on a remote server somewhere outside of your house. Possible locations include your work, your web server or an online storage system elsewhere.
Doing your Own Backups
If you have a lot of extra disk storage space on your web host, you can easily use that to backup your files. For the lazy, simply zipping up all your files (hopefully not that many) and uploading it will suffice. But if you have a lot of files, this process can be long and tedious. Sure you could do an overnight upload but a little speedbump in your network connection and there goes your file! Luckily, there is a very elegant solution: rsync.
What is rsync?
rsync is a piece of Unix software that does incremental backups. What is an incremental backup? Let’s say you’re working on a large word document and since your last backup, all you’ve done is change a few words here and there and added a couple pages. When you perform your next backup, instead of uploading the whole file, rsync will only upload the changes that were made since the last backup. Not only does this save bandwidth, it will also let you roll back to previous backup states (in case you overwrote something you didn’t mean to).
Rsync is a great piece of software and anyone can use it. Linux users might have it built in or they can download it from the website. Mac users can use RsyncX and Windows users can download Cygwin which provides a Linux-like environment in Windows and run rsync from there. Setting it up can take some time which is why some nice people created various tools to help simplify the task.
Automated Solutions
Personally, I couldn’t be bothered to go through the trouble of setting up rsync. Instead, I use Mozy which is a free online backup solution for Windows. It fully automates the backup process and does incremental backups every night. I’ve been using it for a while and will write a full review of it in the next few days.
Don’t put all your eggs in one basket
Now I’m not completely disregarding offline backup solutions. It’s useful to have a copy of your files on-hand in case you need to share it with someone or have quick access to it (since it is much faster than downloading your online backups). This doesn’t apply only to your hard drive data, but to your websites and databases as well! Get to know your web host’s backup features and take advantage of them!
So how often do you backup and what do you use to do it? Anyone actually get an rsync script setup and working?
Popularity: 4% [?]
















Entries (RSS)
[...] the only way to safely backup your data is to store it on a remote server somewhere source: Backup Data Online the Smart Way, jon lee dot see eh | a fun web development [...]
Yeah rsync is a standard feature in Linux…. I use Windows more for browsing but use Linux for programming so use stuff like this quite a lot…. you can create a simple script to do all your backups and put it on a Cron job to schedule it…. that way its pretty effortless.
TBH I prefer to zip directories up and save them, that way I have incremental backups… I find that particularly useful with web stuff / programming as things often change dramatically from start to finish…. sometimes its useful to go back for something you have subsequently removed….
I love the picture that goes along with this post, it’s a perfect description of how I feel when I “break the internet”
I have a script that uses rsync to pull all my sites from my webhost down to an attached 150GB drive that I have at work. I also use the same script to pull another copy of all my sites down to my backup server at home which has a 750GB raid 5 array running on it. Both run via cron daily. The script also does a mysql dump on all my db’s. And if it fails I get an sms to my phone.
the best backups -gmail it to urself depending on file size, external hard drive, on a server at work n back up server if you have access lol (with permission of course)
Thats a pretty good strategy you have. Does your webhost also make daily backups?
I have mirrored drive in my workstation along with an external backup drive. My host also does daily backups of the data. Still think I should look into an external solution though.
mediatemple does daily backups but I have plenty of important documents that aren’t on the web that need backing up!
I agree, Gmail is a pretty safe bet for small files. There’s a Firefox extension (or was it a program) that let you use your Gmail storage space for file storage. You could also link together several gmail accounts to increase the size. I don’t remember what it’s called.
[...] PR4 Backlink « Backup Data Online the Smart Way Jun 26 [...]
Uh huh. I have been too lazy to back-up my web files. I now realize this is a mistake. Will start doing it NOW!
Thanks for sharing, I use linux for my website server. but i use windows for my pc. I have no idea what software i should use. rsync or mozy?
For Windows, you’ll need cygwin to install rsync – http://www.cygwin.com/
Mozy is essentially the same thing as rsync but wrapped in a neat package with a lot of extra features.
The benefit to rsync is that you’re limited by the amount of space you have on your server and it is completely free.
Whereas for Mozy, you only get 2GB (unless you want to pay). Depends on how much you have to back up but Mozy is definitely the cleaner and easier to use solution for Windows
hope that helps!
I’m thinking I should start using Linux. I’ve really had very little experience with it. As far as backups go, up to this point, I’ve backed up my server files and stored them on another harddrive on my comp and usually leave a copy on the server as well. I also backup my computer files to that other harddrive as well and, occasionally, upload them to my web server. I have more space on that thing than I’ll ever use.
I don’t understand why you are comparing mozy to rsync. The point of mozy is to offer people a PLACE to store data. Rsync is a METHOD of moving data.
Rsync doesn’t help you if you have no place to rsync your data to.
It would be nice if mozy offered users a place to rsync their data to. That would be a great service!
[...] multiple occasions, I’ve stressed the importance of backing up your files and documents. I’ve also reviewed Mozy as an online backup solution. However, there’s a new [...]