Skip to content
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

Unable to download archive even after it's available #178

Open
varunmalhotraminjar opened this issue Jan 11, 2016 · 5 comments
Open

Unable to download archive even after it's available #178

varunmalhotraminjar opened this issue Jan 11, 2016 · 5 comments

Comments

@varunmalhotraminjar
Copy link

First I instructed Glacier to retrieve an archive using below command :

glacier-cmd getarchive

After few hours I got an email notification about the completion of the retrival job. As the data is available for download I ran this command :

glacier-cmd download

All I'm seeing on the screen is some weird codes dancing on the STDOUT. Tried adding "--outputdirectory <dir_name> but it didn't work. Could someone please help!

@wvmarle
Copy link
Contributor

wvmarle commented Jan 11, 2016

It dumps the data to stdout. Use a redirect such as "> outfile" to tell the OS where to send the data to.

So the command would look about like this:
$ glacier-cmd download ... > archive.zip
with ... replaced by the other options such as the archive ID.

@varunmalhotraminjar
Copy link
Author

Awesome!! Thank you so much.
Does the outfile name "> archive.zip" has to be same as the file/archive real name/extension with which it was uploaded to vault?

@wvmarle
Copy link
Contributor

wvmarle commented Jan 11, 2016

No, any name will do. For your convenience, do use the correct extension, making it easier to recognise the file later.
In fact, when uploading a file to Glacier, the file name gets lost. Glacier stores the data and refers to it by the ArchiveID instead. That you can still see the file name in glacier-cmd is because it stores the file name and ArchiveID separately in a simpleDB database.

@varunmalhotraminjar
Copy link
Author

Sure, Thank you so much!! I'll try to install SimpleDB.

One last question please, is there a way to get the Archive ID of the recently uploaded archive? Because, I just uploaded an archive of 4.2GB and all is shows is:

[root@ip-10-12-111-2 data_back]# glacier-cmd upload howopensource db_bck.zip --description "Backup_Mon"

Wrote 4.2 GB. Rate 3.08 MB/s.. Rate 4.84 MB/s, average 3.08 MB/s, ETA 09:55:49.

Header (Archive SHA256 tree hash Uploaded File) and Value.

Is it possible to get the archive ID?

@gaul
Copy link

gaul commented Jan 11, 2016

Is it possible to get the archive ID?

#170 fixes the missing archive ID. @uskudnik could you merge this?

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

No branches or pull requests

3 participants