Hitachi Cloud Services - Content Archiving and duplicity

Document created by Leland Sindt on Mar 23, 2016Last modified by Leland Sindt on Apr 29, 2016
Version 6Show Document
  • View in full screen mode

Using duplicity with Hitachi Cloud Services - Content Archiving

 

Hitachi Cloud Services - Content Archiving offers an Amazon S3 compatible REST interface that can be used with duplicity

 

duplicity installation

Download, compile and install duplicity - The following process was used to install duplicity on an Ubuntu Server 14.04 LTS system.

 

wget https://code.launchpad.net/duplicity/0.7-series/0.7.06/+download/duplicity-0.7.06.tar.gz -O /usr/local/src/duplicty.tar.gz
tar -zxvf /usr/local/src/duplicity.tar.gz
# Review the Readme....
vi /usr/local/src/duplicity/README
sudo apt-get install librsync-dev
suod apt-get install python-dev
sudo apt-get install python-pip
sudo pip install boto
sudo pip install lockfile
python /usr/local/src/setup.py build
sudo python /usr/local/src/setup.py install




duplicity usage

 

export AWS_ACCESS_KEY_ID=$(echo -n "<username>" |base64)
export AWS_SECRET_ACCESS_KEY=$(echo -n "<password>" | md5sum |awk '{print$1}')
duplicity --name <name> --no-encryption </path/to/backup> s3://<tenant>.content.<site>.cloud.hds.com/<namespace>/<name>
export AWS_SECRET_ACCESS_KEY=""
export AWS_ACCESS_KEY_ID=""




 

<username>

The user name that duplictiy will use to access the HS3 enabled Namespace.

<password>

The password of the user that duplicity will use to access the HS3 enabled Namespace.

<name>

The name of the backup

Examples: archived_logs, home_directories

</path/to/backup>

The local path containing files to be backed up via duplicity.

<tenant>

The Tenant containing the <namespace> in which the duplicity backups will be stored.

<site>

The site of the <tenant> to be mounted vis s3fs.

Examples: us-az1, us-nj1

<namespace>

The Namespace within the <tenant> in which the duplicity backups will be stored.

<prefix>

The the directory name within the Namespace in which the duplicity backups will be store.

Notes

This guide is intended as a getting started primer. duplicity is a comprehensive encryption enabled differential backup and restore tool for which there are many guides available. Consider your backup and recovery needs carefully as you incorporate duplicty.

Attachments

    Outcomes