Skip to content
This repository has been archived by the owner on May 10, 2024. It is now read-only.

bin/glacier defaults to empty description when uploading #2528

Open
francescomalandrino opened this issue Aug 17, 2014 · 4 comments
Open

bin/glacier defaults to empty description when uploading #2528

francescomalandrino opened this issue Aug 17, 2014 · 4 comments

Comments

@francescomalandrino
Copy link

I used bin/glacier to upload some files (archives) to glacier. The console output was something like:

"uploading stuff.zip to vaultname"

and the application exit correctly. Except, it left the description of all archives empty, and now I have 1 GB of description-less files in my vault.

I would suggest to either

  1. enhance the console output, e.g.:
    "stuff.zip uploaded to vault name with ArchiveID skfsdkjfhsdjfhsd"
    or (my favorite solution)
  2. default to putting the file name as the description (bin/glacier, line 111)
@danielgtaylor
Copy link
Member

This is a great idea, thanks. I personally prefer number two. Pull request welcome to add the feature. 👍

@francescomalandrino
Copy link
Author

#2535

danielgtaylor added a commit that referenced this issue Aug 20, 2014
Uses file name as archive description when uploading to glacier. Fixes #2535, #2528.
@arterrey
Copy link
Contributor

I've put in a pull request for number one. Please see #2951

@arterrey
Copy link
Contributor

Can I suggest for the number two option - that the hostname should be in there as well? and possibly the full path of the file (the limit is 1024 characters http://docs.aws.amazon.com/sdkforruby/api/Aws/Glacier/Client.html so it seems safe to have the full path there)?

So the description would become:

my.hostname:/path/to/file

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants