basak / glacier-cli

Command-line interface to Amazon Glacier
Other
617 stars 55 forks source link

Aren't ANNEX_KEY and ANNEX_FILE swapped in the docs in one of the lines? #21

Closed ikatson closed 11 years ago

ikatson commented 11 years ago

glacier-store-hook = glacier archive upload --name=\"$ANNEX_KEY\" vault-name \"$ANNEX_FILE\"

The other lines have $ANNEX_KEY as the vault name.

basak commented 11 years ago

No, it's the right way round. vault-name needs to be replaced by your actual vault name and doesn't go in literally. $ANNEX_KEY is the archive name from glacier-cli's perspective, and $ANNEX_FILE is the local file.

I appreciate that it looks reversed, though! This is because when storing the data is going from $ANNEX_FILE, and when retrieving the data is going to $ANNEX_FILE.