Closed koala73 closed 11 years ago
Not sure about terminalogy:
When you upload files, filenames and file modification times are encoded in Amazon Glacier metadata field x-amz-archive-description
.
Yes mt2
is the signature for this. Specification of encoding here: https://github.com/vsespb/mt-aws-glacier/blob/master/lib/App/MtAws/MetaData.pm#L37
You probably use another Glacier application which names 'x-amz-archive-description' field as "Filename" ?
You can easy check that filenames are stored right. Issue retrieve-inventory/download-inventory - yo'll see filenames inside new journal file (this is text file).
Closing for now. Please reopen if needed.
Just for clarification - there is no such thing as "filename" in Amazon Glacier API. Different Glacier programs store filenames different way in x-amz-archive-description field.
It's impossible to store unencoded filename in this field, because it allows only characters < 127. Also usually glacier clients wish to store file modification time together with filename.
I ran a sync on a directory with 45 files that the names of each file describe the data and date/time of creation, i.e., CFTotalWaterAccum_GC_24hr_20110409_1200.nc.gz.done. After the sync and refresh completed, the journal contains the following information (this is one line). If I view the list in a 3rd party software, such as CloudBerry Explorer or Fast Glacier, the files are absolutely unrecognizable. Does that mean I have to keep the journal around and worry about backing it up as well? Do I have to share this journal with all the remote sites as well, so they know what is what?
From the journal.log: A 1367274027 CREATED SjHVyrAn0DffHMhC3RhbHQuZk_Zlzf2kiRjBSBJ0xilHC8rJhMhOh-baS7qCgYRiOyb_JLh7zVMIaXvKPy12MQVfDbv3hInbokQPhoShdAuQgTSpJgrWck5ganhuzh7HJ8BjBXj50A 8203548 1367264641 4904d1d97fe68e53d9fb9b1b5981c3af39f0dcc20ba959d2b7d77ed17d1907a7 CFTotalWaterAccum_GC_24hr_20110409_1200.nc.gz.done
Image from Fast Glacier:
mtglacier
, only with mtglacier
.
You cannot restore it with CloudBerry Explorer or Fast Glacier. Because each Glacier client maintain its own format of metadata.mtglacier
format.Thank you for taking time to respond. I am starting to understand the difficulties of working with Glacier and finding a common ground for metadata formats. I also realized I need to read the existing documentation more closely. Thanks again...
5: my bad, the date in the name contains the date of the data inside the file, not creation date, hence different. It's weather data for that day.
I think easier thing, that you can do now, is to put each file to ZIP (or other) archive, which support filenames. This probably beast solution, especially if file names are extremely important.
When I upload files using the latest version of mt-aws-glacier [0.87 beta], the file names uploaded are pretty much changed to something else like "File Name: mt2 eyJmaWxlbmFtZSI6InVwZGF0ZSA0L3VwZGF0ZSAyIGZvcm0gSUVHL0Z1bGwvSW5HcmlkX0RhbnNUZXNZZXV4...."
Is that normal? Can't I get them back in the original filename??
Thanks