This article sets up backups for a Linux machine.
Create a DreamObjects username, Keys, and a Bucket.
Download software to Ubuntu
On your Linux machine, download the following software:
[local]$ sudo apt-get install duplicity python-boto
Create a .boto file to store your user keys
View the following article for instructions on how to create this .boto file:
Backing up data from your Linux computer to DreamObjects
You are now ready to backup any directory on your Linux computer to a bucket on DreamObjects. This examples backs up the /Pictures directory to a bucket named 'blogdemo':
[local]$ duplicity –allow-source-mismatch ~/Pictures \ s3://objects-us-west-1.dream.io/blogdemo
It prompts for an encryption password which you should make a note of. Your files are then synced. Output appears as follows:
GnuPG passphrase: Retype passphrase to confirm: No signatures found, switching to full backup. ————–[ Backup Statistics ]————– StartTime 1356046824.18 (Thu Dec 20 15:40:24 2012) EndTime 1356046824.20 (Thu Dec 20 15:40:24 2012) ElapsedTime 0.02 (0.02 seconds) SourceFiles 10 SourceFileSize 374 (374 bytes) NewFiles 10 NewFileSize 374 (374 bytes) DeletedFiles 0 ChangedFiles 0 ChangedFileSize 0 (0 bytes) ChangedDeltaSize 0 (0 bytes) DeltaEntries 10 RawDeltaSize 0 (0 bytes) TotalDestinationSizeChange 295 (295 bytes) Errors 0 —————————————————
That’s it. Run this command whenever you want to update your backups.
To restore content, you just need to reverse the source and destination values. This example restores the Pictures directory (that was backed up above) from the 'blogdemo' bucket into a new local directory named 'Pictures_restored':
[local]$ duplicity s3://objects-us-west-1.dream.io/blogdemo/ \ ~/Pictures_restored