.TH s3cmd 1
s3cmd \- tool for managing Amazon S3 storage space
[\fIOPTIONS\fR] \fICOMMAND\fR [\fIPARAMETERS\fR]
is a command line client for copying files to/from
Amazon S3 (Simple Storage Service) and performing other
related tasks, for instance creating and removing buckets,
listing objects, etc.
can do several \fIactions\fR specified by the following \fIcommands\fR.
List objects or buckets
List all object in all buckets
\fBput\fR \fIFILE [FILE...] s3://BUCKET[/PREFIX]\fR
Put file into bucket (i.e. upload to S3)
\fBget\fR \fIs3://BUCKET/OBJECT LOCAL_FILE\fR
Get file from bucket (i.e. download from S3)
Delete file from bucket
\fBsync\fR \fILOCAL_DIR s3://BUCKET[/PREFIX]\fR
Backup a directory tree to S3
\fBsync\fR \fIs3://BUCKET[/PREFIX] LOCAL_DIR\fR
Restore a tree from S3 to local directory
Get various information about a Bucket or Object
Disk usage \- amount of data stored in S3
Some of the below specified options can have their default
values set in
config file (by default $HOME/.s3cmd). As it's a simple text file
feel free to open it with your favorite text editor and do any
changes you like.
Config file related options.
Invoke interactive (re)configuration tool. Don't worry, you won't
lose your settings on subsequent runs.
\fB\-c\fR FILE, \fB\-\-config\fR=FILE
Config file name. Defaults to $HOME/.s3cfg
Dump current configuration after parsing config files
and command line options and exit.
Most options can have a default value set in the above specified config file.
Options specific to \fBsync\fR command:
Delete remote objects with no corresponding local file when \fIsync\fRing \fBto\fR S3 or delete local files with no corresponding object in S3 when \fIsync\fRing \fBfrom\fR S3.
Don't delete remote objects. Default for 'sync' command.
Preserve filesystem attributes (mode, ownership, timestamps). Default for 'sync' command.
Don't store filesystem attributes with uploaded files.
.\"Only show what would be uploaded or downloaded but don't actually do it. May still perform S3 requests to get bucket listings and other information though.
Options common for all commands (where it makes sense indeed):
Force overwrite and other dangerous operations.
Store objects with permissions allowing read for anyone.
Store objects with default ACL allowing access for you only.
Specify datacentre where to create the bucket. Possible values are \fIUS\fR (default) or \fIEU\fR.
Use GPG encryption to protect stored objects from unauthorized access.
\fB\-m\fR MIME/TYPE, \fB\-\-mime\-type\fR=MIME/TYPE
Default MIME\-type to be set for objects stored.
Guess MIME\(hytype of files by their extension. Falls
back to default MIME\(hyType as specified by \fB\-\-mime\-type\fR
Print sizes in human readable form.
.\"Show complete S3 URI in listings.
Enable verbose output.
Enable debug output.
Show the help message and exit
version and exit.
Written by Michal Ludvig <firstname.lastname@example.org>
.SH REPORTING BUGS
Report bugs to
Copyright \(co 2007,2008 Michal Ludvig <http://www.logix.cz/michal>
This is free software. You may redistribute copies of it under the terms of
the GNU General Public License version 2 <http://www.gnu.org/licenses/gpl.html>.
There is NO WARRANTY, to the extent permitted by law.
.SH SEE ALSO
For the most up to date list of options run
.B s3cmd \-\-help
For more info about usage, examples and other related info visit project homepage at