layout | title | categories | lang | author |
---|---|---|---|---|
post |
How to store your backup with duplicity and Openstack Swift? |
Object-Storage |
en |
VincentCasse |
Duplicity is an open source tool for backing up your files. You can find more information on the official website.
Since version 0.6.22, Swift has been on the list of available back-ends. So you can use Duplicity to send your backup on RunAbove object storage.
Download Duplicity with version 0.6.22 or later. Packaged versions are available for the most widely known distributions.
To connect to your RunAbove object storage, you will need to have your login, password and tenant name. This information can be found in Openstack Horizon manager below current project
RunAbove object storage allows you to create distinct areas called containers to store your files. It's good practice to use a specific backup container. You can create it in your control panel.
Under What do you want to add?, select A storage, then define your container name and geographical region.
The last step before starting your backup is to define your account information for Duplicity. You must define these environment variables:
- SWIFT_USERNAME: your username
- SWIFT_PASSWORD: your password
- SWIFT_AUTHURL: https://auth.runabove.io:443/v2.0
- SWIFT_AUTHVERSION: 2
- SWIFT_TENANTNAME: your tenant name
- SWIFT_REGIONNAME: (optional) region where you want to store backup (BHS-1, SBG-1...) (Available in duplicity>=0.7.02)
Finally, you can back up the configuration folder in your backup container.
duplicity configuration/ swift://backup