Documentation
¶
Overview ¶
Command restore copies objects out of the archive back into local storage.
It is the way out of cold storage. A deployment that adopted the archive and later wants to stop using it needs to be able to bring everything home; without that, turning the archive on would be a one-way door, and asking an operator to walk through one of those is how a good idea becomes a trap.
It copies, it never deletes ¶
Nothing is removed from the archive. Emptying the S3 bucket is a separate decision, made from the AWS console or CLI once local storage is confirmed to hold everything. Automating it here would mean a bug in this program could destroy the last remaining copy.
It is safe to interrupt and rerun ¶
An object already present locally at the archived size is skipped, so a rerun costs one stat per object and resumes where the last one stopped.
Before running ¶
Check there is room. This pulls everything back onto the disk the archive was introduced to relieve, and a restore that fills the filesystem takes the live service down with it. Reading from Glacier Instant Retrieval also carries a per-gigabyte retrieval charge, so a full restore of a large archive is a real invoice, not just time.
Usage ¶
restore # report what would be pulled back restore -apply # do it restore -apply -buckets photos # one bucket