Tag Archives: Backup

Mozilla Weave

This is a short blog post to say that I’ve found an excellent must-have for Firefox users. It’s called Mozilla Weave. It keeps history, bookmarks, passwords, Firefox settings, and soon add-ons in sync. My experience of any kind of automated syncing software has been poor, but this one seems to be flawless. Minus connectivity issues when I’m offline, it’s never reported an error or bugged me about some conflict or other. It just sits there and uploads data to Weave servers (or your own if you so choose) so other computers may stay in sync. Even if you don’t have multiple computers, this is great for just backing up, especially considering the Firefox data folder is a pain to back up.

Privacy concerns are non-existent here, because everything is encrypted with a pass-phrase, on top of your Weave account username and password.

The only bummer about Weave is it’s limited to just Firefox, and Firefox’s competitors have no equivalent yet. It looks like I won’t be switching to Chrome any time soon.

Backing up with Duplicity, Effortlessly

Duplicity has a wonderful design feature: it’s really really simple.

Duplicity has an annoying design flaw: it’s really really simple.

In case you didn’t notice, Duplicity‘s simplicity is both helpful and inefficient. It’s extremely easy to start using Duplicity because its usage is so very simple. Want to back something up? Just write “duplicity /some/directory ftp://user@host.com/some/other/directory” for FTP backup, or “duplicity /some/directory file://some/other/directory” for local backup, or any other protocol out of the 11+ protocols it supports. All it does is write files to the location of your choosing, and then it can recover and list files (either latest or at a date of your choosing) from the backup directory you give it.

This simplicity is really great for the simple use-cases, like backing up a home directory. It’s when you get into databases, exclusion and inclusion rules, and other such fine print that you have to plan a little.

I’ve got three different “things” I have to back up: my web development stage, my remote shell (mainly for irssi), and my home directory. Each one presents its own challenges, which I break down below. Continue reading

The Secret to Backing up Home Folders

Here are the things I do to keep my home folder backups to 2 GB or less:

  • Clear Firefox’s cache. This is a big space hog, and cache is worthless.
  • I filter out “.azureus/torrents/”, a folder of mine, so that any BitTorrent downloads aren’t included in my backups. They usually are demos of games I want to try before I buy, so I never keep them anyway.
  • Any software or data I could care less about or can easily reconfigure I usually filter out as well. This includes:
    • ePSXe: barely used, never keep the games or save data
    • Vendetta: demo, why keep it?
    • Wine: because everything I do with Wine is easily deletable or easily redone
    • Videos I re-encoded for my Palm: would rather re-encode again than back up 1GB+
    • All ISO’s: can redownload
    • VirtualBox: can reinstall the virtual images much easier than backing up and restoring 8+ GB.

Duplicity’s command line for the operation, in all it’s glory, is this:

duplicity $1 -v9
–exclude “/home/jacob/.azureus/torrents/**”
–exclude “/home/jacob/.epsxe”
–exclude “/home/jacob/.vendetta”
–exclude “/home/jacob/.wine”
–exclude “/home/jacob/.feeded/vids”
–exclude “/home/jacob/Documents/Personal/Music”
–exclude “**.iso”
–exclude “/home/jacob/.VirtualBox”
/home/jacob ftp://USER@HOST.EXT/folder/folder

With these settings, my backups take less than 15 minutes a day. If this hasn’t convinced you to start a regular backup, I don’t know what will. (And if you’ve already tried, but find it hard to get into a habit, and don’t like cron because you don’t know of a good time when your computer is on and you’re not using it, try doing your backups before you log in in the morning.)

Backup Test: Reinstalling Gentoo

A good administrator always checks his backups by running through a make-believe full-scale recovery. I’m doing that right now.

So far I’ve discovered some flaws in my backup process that thankfully I’ve discovered now. Things like when it recovers symlinked directories, which my backup software faithfully preserves, they don’t always point to an existent spot anymore. The software fails to recover any data inside that symlinked directory because it can’t write to the destination.

I also realized I had forgotten to backup /lib/firmware. If you have a bcm43xx card like I do, this directory holds the precious firmware extractions needed by the b43 driver. Without that, I’d first need ‘net access to get the fwcutter utilities and the firmware “blobs” before my card would go online. Catch-22 just waitin’ to happen.

If you are maintaining backups yourself, but you haven’t actually tested your methods yet, now’s the time. Trust me, it’ll be worth it when you reinstall your OS or when your hard-drive crashes.

Duplicity Backs Up Beautifully (And Anywhere)

After struggling with what good backup system would work for me, I’ve finally settled on duplicity. It doesn’t have a user interface, and it doesn’t even use cron (though you can manually punch it in). It does, however, do exactly what I want: It can tell me what my system looked like at a particular date, because it tracks deleted files as well. Not only that, but it compresses and encrypts everything into what appears to be a custom tar format.

And, unlike most other backup systems, it can back up onto FTP, or just about any other storage medium for that matter, because it doesn’t use fancy links or any other junk. It uses plain ‘n simple manifest files.

Duplicity is something you can have working within minutes if you can use a terminal. Granted, you have to manually back everything up, but that’s good for me, since I don’t really have a standard schedule of when I’m on and off the computer.

Give it a try some time.

Powered by ScribeFire.

One Down, One to Go

I am officially re-settled into Ubuntu again! I had to drop Kopete due to an annoying crash when I tried to log into certain protocols, so I use Gai… I mean… Pidgin instead. I seem to be running in circles – this is the second time I’ve switched back from Kopete.

On the side, I forgot to back up my MySQL DBs and private keys for e-mail signing. The former is a mirror of another DB (thankfully!) and the latter is dispensable (really, who checks those things anyway?).

Powered by ScribeFire.

Gettin’ Gentoo’s Gutsy

I’ve decided to try to step up another level in the Linux world. It’s time I tried Gentoo.

Gentoo’s where all the cool documentation and HOWTO’s come from. Half the time they get things to work that others struggle with, and then share that knowledge. It’s almost like Gentoo is an excellent high-quality college that’s difficult to get into, whereas Ubuntu’s your average-quality, fairly-easy-to-get-into college, in my opinion. It’s very exciting to see how things have progressed since I tried MEPIS years ago, when I didn’t have to do anything to make any of my hardware work.

So, I’ve finally backed up my stuff onto another computer after spending 3 or so hours watching cp -vR print endless lines of output. I’m installing now, and I’m already impressed… (but more on that in a moment…)