Luke Dubber: Techno jargon


DropBox, Lindoe and rsnapshot

27 Feb 2013

So I was trying to come up with a good way to backup my Linode box, now I have been thinking about this for a while, I put it on the back burner until quite recently when I finally got a DropBox (seriously if you don’t have one get one!) account. Now that I have one and have seen the potential I decide to see if I could use this to sync up backups to my desktop from the Linode server.

I used rsnapshot to do the daily backups into my DropBox folder. I only backup the htdocs, Apache configs, and an export of my databases since that is all I need to be able to restore or move my sites over. Now the only issue I have had with DropBox and Linux has been the issue of symlinks, it does not support them. So if you are backing up 100 megs of data the first day and then you backup again the next day and there are no changes. You still end up with another 100 megs. You can do the math its not ideal. But I figured since I don’t have much and its better then nothing I am going to stick with it. Now if you know what you are doing with rsnapshot you can secure copy them over SSH to another box. I plan on doing that next so that files are backed up to my local Linux box at home (even though just using Dropbox on that machine and a rsync would be enough).

Bellow are the steps to do what I have done. They are quick and a little light on details.

  1. Get a DropBox account.
  2. Setup the Linux client
  3. Install rsnapshot and set it up for the directories you want and point it to your Dropbox folder
  4. Done

Only side note is if you use this Dropbox for personal make sure you exclude it from your personal machine. That way you don’t end up with a gigs of backups syncing all the time.