New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use file name as archive description #6
Comments
I'm not sure I understand, it will re-use the same vault, and all the files generated are prefixed with the unique id of the job. Latest version of iceshelf fixed that (previously, |
Hi Henric, I would like to suggest to use the unique ID also as archive description (`glacier-cmd upload V... --description "ID"`)
As I've seen right now on https://github.com/uskudnik/amazon-glacier-cmd-interface/blob/85ef4aa6dd58a36a77e4406366ddc27c7813cf5e/README.md, you can also pass several file names with 1 description
Am 12. März 2017 17:48:59 MEZ schrieb Henric Andersson <notifications@github.com>:
…I'm not sure I understand, it will re-use the same vault, and all the
files generated are prefixed with the unique id of the job. Latest
version of iceshelf fixed that (previously, `filelist.txt` was not
unique, but now it is)
--
You are receiving this because you authored the thread.
Reply to this email directly or view it on GitHub:
#6 (comment)
|
Ahh, oki :) I'll see what I can do. Should be able to get that in today. |
Great! Thanks :)
Am 12. März 2017 19:25:31 MEZ schrieb Henric Andersson <notifications@github.com>:
…Ahh, oki :)
I'll see what I can do. Should be able to get that in today.
--
You are receiving this because you authored the thread.
Reply to this email directly or view it on GitHub:
#6 (comment)
|
Please try the latest version, it should use description AND remove the path from the filenames. |
This version gives me a "unknown arguments" error from glacier-cmd and then lists the files. Seems like passing several file names is not supported!?
|
Odd, try updating to the latest version of the glacier tool. I*ll look
into it once I get home.
…On 2017-03-13 14:05, Jonny007-MKD wrote:
This version gives me a "unknown arguments" error from glacier-cmd and
then lists the files. Seems like passing several file names is not
supported!?
--
You are receiving this because you commented.
Reply to this email directly, view it on GitHub [1], or mute the
thread [2].
*
Links:
------
[1] #6 (comment)
[2]
https://github.com/notifications/unsubscribe-auth/ABw0IoQG_okoXtRCvTaaSLJjcaCfoEacks5rla-xgaJpZM4MaT4D
|
I checked it and I'm on master and up-to-date for glacier-cmd. perhaps we cannot specify `--description` and/or `--name` more than once and the error message is wrong?
Am 13. März 2017 22:09:28 MEZ schrieb Henric Andersson <notifications@github.com>:
…Odd, try updating to the latest version of the glacier tool. I*ll look
into it once I get home.
On 2017-03-13 14:05, Jonny007-MKD wrote:
> This version gives me a "unknown arguments" error from glacier-cmd
and
> then lists the files. Seems like passing several file names is not
> supported!?
>
> --
> You are receiving this because you commented.
> Reply to this email directly, view it on GitHub [1], or mute the
> thread [2].
>
> *
>
> Links:
> ------
> [1]
#6 (comment)
> [2]
>
https://github.com/notifications/unsubscribe-auth/ABw0IoQG_okoXtRCvTaaSLJjcaCfoEacks5rla-xgaJpZM4MaT4D
--
You are receiving this because you authored the thread.
Reply to this email directly or view it on GitHub:
#6 (comment)
|
You're right, only works once 😞 so for now it's gone and it's only going to set the description. |
Latest version should work now. |
Hey, it is indeed working :)
Do you know whether Glacier remembers the file extension? Or can we afterwards automatically figure out which item is what? |
Odd, there should be a description AND a filename, not just the description |
That's what I thought, too. In my inventory I've got the columns
- Archive ID
- Description
- Uploaded (timestamp)
- SHA256 tree hash
- Size
|
If you can, try downloading the smallest one and see if you get the actual filename. Otherwise we have a slight issue. Should be able to reconstitute the extension based on header in file, but I'd rather not do that |
Here is what I tried:
Seems like I downloaded the list with filenames, whoever created it. So manually we could download all files with the same description, parse this special file and use the hashes to get the file names. |
That's actually iceshelf. To avoid exposing what's in your archive but still quickly check it's "OK" and that you have all files, it creates a .lst file which can be used with shasum. But I'm none too happy with the loss of filenames. That was not the intention of this change (beats himself over the head for not confirming this). After some more digging, it seems that description and filename are one and the same here and most likely it's just for glacier-cmd's own benefit it has both. This makes it quite useless though. I always assumed the filename would be stored separately, but I guess not. So should I revert to oiriginal behavior? I can remove the path of the file and just store the name itself, and since it's all prefixed with the ID of the archive, it should still be fine. Thoughts? |
I totally agree with you, and I'm fine with your suggestion :) The path is quite useless, but with the filename we get the ID and the extension(s). |
Alright, cool, I'll fix that tonight (running on PST time here) so expect an update in ~10hrs. Btw, if you want a more direct communication, send me an email and I'll invite you to the slack channel |
Any news on this? :) |
Sorry for lack of update, I'm just running a test to confirm that it does indeed upload the expected data to glacier before I push the change. Should be done in a few hours (waiting for inventory ...zzzzz) |
So I'm having some issues right now getting any sensible results from this. I see my files being uploaded, but I cannot make glacier-cmd's inventory call actually reflecting this. Even when I force it with --refresh it still lists old content from 2015. Have you seen this issue? |
Yes, sometimes I only get the old inventory, even if I see that the new inventory job completed. But after a while glacier-cmd forgets about the old job...
|
depressing :( oh well, it does work, I've seen it upload and issue the correct commands, so I'm just going to cleanup and then push it. |
I wish github had a messaging system. I have a slack for this already, if you send me your email to github@sensenet.nu I'll invite you. |
Alright, it works, and I also found the issue in glacier-cmd (for inventory), so it might be time to fork and maintain that too since it doesn't seem like the original owner have time anymore. |
Great, thanks! :) If you fork glacier-cmd I'll happily follow you! |
We'll see :) Might do it for this fix at least. Closing this issue now. |
I think it would be nice to use the file name (date, time, hash/rand, e.g.
20170309-140558-78a43
) as archive description for all subordinated files.These two files belong together and could be grouped by the description:
The text was updated successfully, but these errors were encountered: