Skip to content

GET (download) ​

Download a file:

sh
s3m get backup/backups/file.dat /tmp/file.dat

Retrieve metadata only without downloading the object body:

sh
s3m get backup/backups/file.dat --meta

Return metadata as JSON:

sh
s3m get backup/backups/file.dat --meta --json

-f/--force ​

Overwrite the local destination if it already exists:

sh
s3m get backup/backups/file.dat /tmp/file.dat --force

-k/--kilobytes (max bandwidth) ​

Limit download speed to 64 KB/s:

sh
s3m get backup/backups/file.dat /tmp/file.dat -k 64

--versions ​

List existing versions for an object key:

sh
s3m get backup/backups/file.dat --versions

List versions as JSON:

sh
s3m get backup/backups/file.dat --versions --json

The listing follows every page, so a key with more versions than one page holds (1,000 on AWS S3) shows all of them. If a truncated page doesn't say where the next one starts, the command fails instead of printing a partial list.

Since 0.25.0

Before 0.25.0, --versions printed only the first page and exited 0, and it failed with XML parse error: duplicate field Version when delete markers came between versions, which is the order AWS S3 uses.

--version ​

Download a specific version:

sh
s3m get backup/backups/file.dat --version <version-id>

Released under the BSD License.