s3cmd [-c CONFIGFILE] [--disable-multipart] put FILE [FILE...] s3://BUCKET[/PREFIX]
CONFIGFILE | Configuration file. Defaults to $HOME/.s3cfg |
--disable-multipart | Disables multipart upload for files over 15 MB (which by default are loaded as multipart uploads) |
FILE | Name of local file to upload |
BUCKET | Name of bucket to which to upload file |
PREFIX | Prefix to append to the object name from which file system hierarchy can be inferred. When listing objects in the bucket, the prefix can be used to filter the list. You can specify a nested series of prefixes delimited by the delimiter (which is typically '/'). Object listing can be filtered by prefixes and delimiters. See List Objects in a Bucket. For example, when uploading a file called file.asp, if you specify a prefix /dev/misc the complete S3 object key becomes dev/misc/file.asp. A file system hierarchy can be inferred consisting of a folder called misc nested under a folder called dev in which the file file.asp is contained. |
Example
Add file blue.txt to bucket bucket1.
$ s3cmd -c vast.s3cfg put blue.txt s3://bucket1 upload: 'blue.txt' -> 's3://bucket1/blue.txt' [1 of 1] 205 of 205 100% in 0s 4.33 kB/s done