Skip to content

Instantly share code, notes, and snippets.

@thurloat
Created April 24, 2015 00:58
Show Gist options
  • Save thurloat/ea4211bb887a165530da to your computer and use it in GitHub Desktop.
Save thurloat/ea4211bb887a165530da to your computer and use it in GitHub Desktop.

containerkeys v1 auth with Duplicity, tested with a local swift AIO install /w middleware installed.

$ export SWIFT_USERNAME="test:testcontainer:Full-Key"
$ export SWIFT_PASSWORD="mykeyiscool"
$ export SWIFT_AUTHURL="http://192.168.122.95:8080/keys_auth/"
$ export SWIFT_AUTHVERSION="1"

$ duplicity --no-encryption containerkeys swift://testcontainer
Local and Remote metadata are synchronized, no sync needed.
Last full backup date: none
No signatures found, switching to full backup.
--------------[ Backup Statistics ]--------------
StartTime 1429836534.60 (Thu Apr 23 21:48:54 2015)
EndTime 1429836534.60 (Thu Apr 23 21:48:54 2015)
ElapsedTime 0.01 (0.01 seconds)
SourceFiles 12
SourceFileSize 59373 (58.0 KB)
NewFiles 12
NewFileSize 59373 (58.0 KB)
DeletedFiles 0
ChangedFiles 0
ChangedFileSize 0 (0 bytes)
ChangedDeltaSize 0 (0 bytes)
DeltaEntries 12
RawDeltaSize 51181 (50.0 KB)
TotalDestinationSizeChange 13364 (13.1 KB)
Errors 0
-------------------------------------------------

and checking through swiftclient

$ swift -A http://192.168.122.95:8080/keys_auth/ -U test:testcontainer:Full-Key -K mykeyiscool list testcontainer
duplicity-full-signatures.20150424T004854Z.sigtar.gz
duplicity-full.20150424T004854Z.manifest
duplicity-full.20150424T004854Z.vol1.difftar.gz
@swat30
Copy link

swat30 commented Apr 24, 2015

😀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment