Scroll to navigation

S4CMD.PY(1) User Commands S4CMD.PY(1)

NAME

s4cmd.py - Super Amazon S3 command line tool

SYNOPSIS

s4cmd.py [options]

DESCRIPTION

S4cmd is a command-line utility for accessing Amazon S3, inspired by s3cmd. It is intended as an alternative to s3cmd for enhanced performance and for large files, and with a number of additional features and fixes. In general, it strives to be compatible with the most common usage scenarios for s3cmd. It does not offer exact drop-in compatibility, due to a number of corner cases where different behavior seems preferable, or for bugfixes.

Super S3 command line tool. Version 2.1.0

OPTIONS

show this help message and exit
print out version of s4cmd
path to s3cfg config file
use access_key for connection to S3
use security key for connection to S3
force overwrite files when download or upload
recursively checking subdirectories
check file md5 before download or upload
trial run without actual download or upload
number of retries before giving up
seconds to sleep between retries
number of concurrent threads
show directory instead of its content
ignore empty source from s3
configure boto3 to use a different s3 endpoint
(obsolete) use SSL connection to S3
verbose output
debug output
(obsolete) validate lookup operation
delete remote files that do not exist in source after sync
size in bytes to split multipart transfers
files with size (in bytes) greater than this will be downloaded in multipart transfers
files with size (in bytes) greater than this will be uploaded in multipart transfers
files with size (in bytes) greater than this will be copied in multipart transfers
Number of files (<1000) to be combined in batch delete.
Condition on files where their last modified dates are before given parameter.
Condition on files where their last modified dates are after given parameter.
The canned ACL to apply to the object.
Specifies caching behavior along the request/reply chain.
Specifies presentational information for the object.
Specifies what content encodings have been applied to the object and thus what decoding mechanisms must be applied to obtain the media-type referenced by the Content-Type header field.
The language the content is in.
The base64-encoded 128-bit MD5 digest of the part data.
A standard MIME type describing the format of the object data.
Copies the object if its entity tag (ETag) matches the specified tag.
Copies the object if it has been modified since the specified time.
Copies the object if its entity tag (ETag) is different than the specified ETag.
Copies the object if it hasn't been modified since the specified time.
The range of bytes to copy from the source object. The range value must use the form bytes=first-last, where the first and last are the zero-based byte offsets to copy. For example, bytes=0-9 indicates that you want to copy the first ten bytes of the source. You can copy a range only if the source object is greater than 5 GB.
Specifies the algorithm to use when decrypting the source object (e.g., AES256).
Specifies the 128-bit MD5 digest of the encryption key according to RFC 1321. Amazon S3 uses this header for a message integrity check to ensure the encryption key was transmitted without error. Please note that this parameter is automatically populated if it is not provided. Including this parameter is not required
Specifies the customer-provided encryption key for Amazon S3 to use to decrypt the source object. The encryption key provided in this header must be one that was used when the source object was created.
Entity tag returned when the part was uploaded.
The date and time at which the object is no longer cacheable.
Gives the grantee READ, READ_ACP, and WRITE_ACP permissions on the object.
Allows grantee to read the object ACL.
Allows grantee to read the object data and its metadata.
Allows grantee to write the ACL for the applicable object.
Return the object only if its entity tag (ETag) is the same as the one specified, otherwise return a 412 (precondition failed).
Return the object only if it has been modified since the specified time, otherwise return a 304 (not modified).
Return the object only if its entity tag (ETag) is different from the one specified, otherwise return a 304 (not modified).
Return the object only if it has not been modified since the specified time, otherwise return a 412 (precondition failed).
A map (in json string) of metadata to store with the object in S3
Specifies whether the metadata is copied from the source object or replaced with metadata provided in the request.
The concatenation of the authentication device's serial number, a space, and the value that is displayed on your authentication device.
Confirms that the requester knows that she or he will be charged for the request. Bucket owners need not specify this parameter in their requests. Documentation on downloading objects from requester pays buckets can be found at http://docs.aws.amazon.co m/AmazonS3/latest/dev/ObjectsinRequesterPaysBuckets.ht ml
The Server-side encryption algorithm used when storing this object in S3 (e.g., AES256, aws:kms).
Specifies the algorithm to use to when encrypting the object (e.g., AES256).
Specifies the 128-bit MD5 digest of the encryption key according to RFC 1321. Amazon S3 uses this header for a message integrity check to ensure the encryption key was transmitted without error. Please note that this parameter is automatically populated if it is not provided. Including this parameter is not required
Specifies the customer-provided encryption key for Amazon S3 to use in encrypting data. This value is used to store the object and then it is discarded; Amazon does not store the encryption key. The key must be appropriate for use with the algorithm specified in the x-amz-server-side-encryption-customer-algorithm header.
Specifies the AWS KMS key ID to use for object encryption. All GET and PUT requests for an object protected by AWS KMS will fail if not made via SSL or using SigV4. Documentation on configuring any of the officially supported AWS SDKs and CLI can be found at http://docs.aws.amazon.com/AmazonS3/latest/dev/UsingAW SSDK.html#specify-signature-version
The type of storage to use for the object. Defaults to 'STANDARD'.
VersionId used to reference a specific version of the object.
If the bucket is configured as a website, redirects requests for this object to another object in the same bucket or to an external URL. Amazon S3 stores the value of this header in the object metadata.

REPORTING BUGS

Please report bugs with s4cmd itself to the authors' GitHub issue tracker: https://github.com/bloomreach/s4cmd/issues

COPYRIGHT

2012-2016 BloomReach, Inc.

September 2019 s4cmd.py 2.0.1