backup

Using an on-disk encrypted partition file for backups.

When backing up my laptop, the technique I use most often is to back it up to an encrypted disk partition.  I do this because I don't have to control access to the backup media.  Sometimes this takes the form of a USB hard drive I use for other things.  Sometimes it's a remote file store not under my exclusive control (like the DreamHost 50G backup account).  Using a large file holding an encrypted filesystem image, I can let my backups live anywhere.

I have come up with a standard, scripted method of using these encrypted filesystem files.  See the comments in the script below for more information on how to initiate the filesystem and use the script.  Note the script is attached below for your downloading convenience...

encfs over sshfs to DreamHost backup account

How to set up a encfs over sshfs
(using DreamHost backup space; but discussion is the same)

I wanted to combine the power of sshfs with the security of encfs to backup my personal files on DreamHost's allocated 50G of file backup space. I liked the idea of having my personal files a) backed up and b) on the Internet available for use from work.

Setting up the mount of the remote (DH backup space) directory on a local dir using sshfs:

I created a local mount point 'dreambackup' and issued the command:

Syndicate content