vsespb / mt-aws-glacier

Perl Multithreaded Multipart sync to Amazon Glacier
http://mt-aws.com/
GNU General Public License v3.0
536 stars 57 forks source link

how to restore a particular file from amazon glacier #97

Closed abhishek6590 closed 10 years ago

abhishek6590 commented 10 years ago

Hi,

Please tell me how to restore a particular file uploaded o amazon glacier. Please mention which command i can use for this.

Thanks.

vsespb commented 10 years ago

https://github.com/vsespb/mt-aws-glacier#restore https://github.com/vsespb/mt-aws-glacier#restore-completed https://github.com/vsespb/mt-aws-glacier#file-selection-options

abhishek6590 commented 10 years ago

Hi,

Thanks for your quick response. can you please check the command -

./mtglacier restore --config glacier.cfg --dir /home/backup --filter '+myfile.gz +' --vault abfile --journal journal.log --max-number-of-files 1

is it right?

vsespb commented 10 years ago

--filter '+myfile.gz +' will filter all files actually. I am not sure --max-number-of-files 1 will help here, as filtering does not imply order of files.

Instead try --filter '+myfile.gz -'.

Try the command with --dry-run option first.

abhishek6590 commented 10 years ago

Hi,

ok i will try it with --dry-run option. it is showing error if i am not using --max-number-of-files.

As i uploaded many files on glacier for example myfile.gz, myfile1.gz, myfile2.gz and i only want to restore myfile.gz right now. in this case --filter '+myfile.gz -' will work?

abhishek6590 commented 10 years ago

or i need to mention --filter '+archived id -' .

vsespb commented 10 years ago

in this case --filter '+myfile.gz -' will work?

yes, but try with --dry-run first

abhishek6590 commented 10 years ago

It works. thanks a lot. :+1: