restore

command
v1.13.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 25, 2026 License: Apache-2.0 Imports: 12 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL