sriramk / azbackup

Secure backup using Windows Azure (a book sample)

This URL has Read+Write access

README
azbackup - Encrypted backups to Windows Azure blob storage
Sriram Krishnan <mail@sriramkrishnan.com>

1. Install M2Crypto. You can find pre-built packages at http://chandlerproject.org/Projects/MeTooCrypto. I've tested on 
both the Mac and Windows build. If the Mac egg fails to install, build from source. 

2.  Set environment variables AZURE_STORAGE_ACCOUNT and AZURE_STORAGE_KEY to your
Windows Azure storage account name and key respectively. For example, if your blog storage account was at 
foo.blob.core.windows.net, yuor AZURE_STORAGE_ACCOUNT should be set to 'foo' without the quotes

3. Run 'python azbackup-gen-key -k <keyfilepath>' where keyfilepath is the path+filename where your key will be stored. 
Two 2048-bit RSA keys will be stored here. DO NOT LOSE THIS FILE. If you do, you will lose access to data backed up with 
this tool and there's no way to get them back.

4. To create a new backup,run 'python azbackup.py -c -k <keyfilepath> -f <archive_name> <directory_to_be_backed_up'

where keyfilepath is the key file from step 3, archive is the name of archive that the tool will generate (for e.g, 
'photos-backup-jan-2009') and the final parameter is the path of the directory you want backed up. Depending on the size 
of the directory, this might take some time as this tool isn't really optimized for speed at the moment. If there are no 
errors shown, the tool will exit silently when the upload is finished.

5. To extract an existing backup,run 'python azbackup.py -x -k <keyfilepath> -f <archive_name>. This will extract the 
contents of the backup to the current directory.

All tools take a -h parameter to show you usage information