Tuesday, March 24, 2009

My backup host is psychic! Or maybe not...

Two months ago I got myself a 50GB backup account for personal use (photo library, documents, code and such), and played around with rsync until I got a working backup script. However, for some deranged reason, I never actually got around to scheduling the backup script to run every night... Well, now I felt it was time to remedy the situation, and maybe write another blog-post while I was at it.

At the very same second I decided this, an email arrived from my backup hosting company (Dreamhost) with the ominous subject "Backup server problems"..! Now, honestly, what is that? Fate? Can they read my mind or what? This is seriously creepy...!
Hello Albin,

I'm very, very sorry it has taken us so long to report back to you regarding your backup user status.  For the last week and a half we've been working with 3Ware to try and revive the raid array, but so far have still had no success. You can read more about it here:

http://www.dreamhoststatus.com/2009/03/07/backup-server-problems/

At the moment, it is really starting to look bad, and we have more or less given up hope on being able to recover the data. Again, I'm really horribly sorry about this.

Hopefully, as this loss only affected our "backup" service (intended to only be used as your backups), you have another copy of all the data that was there. We have now at least gotten the backup server back online (without any 3Ware raid cards this time), so you may begin using it again to re-backup your data.

To try and make up for this a tiny bit, I have just now applied a $20 account credit to your account. (The total of any amount you've been charged for backups since October, plus  extra.) Again, I sincerely apologize for the inconvenience. If you have any questions, please respond to this email and we will all do our best to help you in any way we can.

Sincerely,

So, it turns out the they had begun experiencing problems with their backupserver about two weeks ago. Since my backup script hadn't been running I hadn't even noticed. But get this, in the end they were unable to recover the data, and gave up! All data on the backup server gone. For everyone! And yes, when I logged in now my backed up files were nowhere to be seen.

So.. Well for me it's actually not a big deal, since all my data is safe and sound on my healthy 1.8 TB RAID5 array at home, and my backup script hadn't been running anyway... And I guess a $20 credit is better than nothing. But honestly, this must really be the last kind of email you'd like to get from your backup company...

(Dreamhost isn't actually a backup company, but a regular hosting company. Since last summer they've been offering an additional 50GB backup space with every hosting account, which as it turns out is cheaper than most of the regular dedicated backup providers. But I guess this is why :P)

So, well did I ever get around to setting up the backup schedule? Yes I did! My home server is running WinXP and Cygwin, with rsync and cron. The command I use for rsync is:

rsync --delete --protocol=29 -avP /cygdrive/d/backup-folder bXXXXXX@backup.dreamhost.com:~/backup/

My local backup-folder is actually a collection of symlinks (yes you can use symlinks in Windows, but they are called junctions) pointing to the folders I actually want to backup. As you can see rsync is not so difficult to use (the protocol=29-stuff is Dreamhost specific, my thanks goes to Climens Codelog for the tip).

After some meddling with crontab (turns out crontab and emacs don't play nice, at least not on Cygwin), I got the schedule up and running as well with:

0 4 * * * rsync --delete --protocol=29 -avP /cygdrive/d/backup-folder bXXXXXX@backup.dreamhost.com:~/backup/ >> ./backup.log

Voilá! Automatic backup scheduled to run every night at 04:00. Finally. Just hope that Dreamhost won't mess up again...

UPDATE: Dreamhost messed up again! The files i uploaded yesterday are gone! Nothing new in the Dreamhost Status blog... What's going on?

UPDATE 2: My files have mysteriously reappeared. Still no news from Dreamhost on whats going on...

3 comments:

  1. Don't you think you're being a bit harsh on DreamHost? After all, they added it on as a completely free service for users, and they're pretty upfront about it coming with no guarantees.

    Personally, I was pretty pleased to get 50G free space, I can now do offsite backups of my home computers, and it hasn't cost me a cent.

    ReplyDelete
    Replies
    1. thánh cự long Nặc Khắc Hi tiền bối.

      Hoắc Hoa Đức thở dài một tiếng, nói:
      -Đúng vậy. Ta chưa bao giờ gặp qua ông ta. Chỉ là nghe cha nói rất nhiều về chuyện xưa của ông ta. Âm Trúc, ngươi biết tại sao Ngân Long chúng ta có thể áp đảo trên những long thành khác, có danh xưng là long tộc cao quý nhất không?

      Diệp Âm Trúc lắc đầu.

      Hoắc Hoa Đức nói:
      -Đó là bởi vì, trong lịch sử thần thánh cự long duy nhất, chính là xuất xứ từ Ngân Long nhất tộc chúng ta. Mà Nặc Khắc Hi, chính là ông nội cđồng tâm
      game mu
      cho thuê nhà trọ
      cho thuê phòng trọ
      nhac san cuc manh
      số điện thoại tư vấn pháp luật miễn phí
      văn phòng luật
      tổng đài tư vấn pháp luật
      dịch vụ thành lập công ty
      http://we-cooking.com/
      chém gió
      trung tâm tiếng anhủa ta.

      Nghe xong những lời này, Diệp Âm Trúc không khỏi sắc mặt biến đổi, ánh mắt cũng trở nên quái dị rất nhiều
      -Thần thánh cự long Nặc Khắc Hi là ông nội của ngài?

      Hoắc Hoa Đức tự hào gật đầu, nói:
      -Không sai, từ khi Long tộc sinh ra tới giờ, đã gần mười ngàn năm rồi. Long tộc chúng ta, cơ hồ là sinh ra cùng với sự sinh ra của Long Khi Nỗ Tư đại lục. Mỗi một tòa Long thành đều xuất hiện ba đến bốn vị long

      Delete
  2. Well, I got my Dreamhost account specifically for the 50GB backup, so for me it wasn't "free" in that sense. I know it doesn't come with guarantees, but you have to admit that a backup service loosing all their customers' data is pretty severe, right? (In the end I think they recovered some of it though.) And also I was pretty upset about the lack of information in their status blog on what was going on. I uploaded new data many times just to have it wiped clean again the next day.

    ReplyDelete