Using software that runs under Linux, is there a way to initiate a restore from Glacier to S3 of an entire directory hierarchy? The files are transferred to Glacier using a S3 bucket lifecycle rule.
Restoring single files from Glacier to S3 in this scenario using the web-based S3 management console is trivial: right-click on the file in question and pick "Initiate Restore", then fill in for how long you want it to be available in S3 and tell Amazon to initiate the restore. However, there doesn't seem to be any option to do so on a directory hierarchy in one operation.
With a reasonably small number of files, perhaps in a single or a few directories, this isn't a problem. In a worst-case disaster recovery scenario, I'm looking at possibly needing to restore 10,000 files or more from Glacier to S3 to download back to my system. I would really rather not do that manually one file at a time.
I could of course use the Amazon API documentation to cook up something myself, but it would be really nice if it is available already.