put command

s3 put <bucket>[/<keyprefix>] <path> [/big[:<size>]] [/backup] [/sync] [/acl:<acl>] [/sub[:withdelete]] [/yes]

Examples

s3 put mybucket pic*.jpg /acl:public-read
s3 put mybucket/backup-pictures/ c:\mypictures\ /sub:withdelete /sync

Puts the file(s) specified by the path to S3. Wildcards are supported. The filename excluding path is suffixed to the end of the supplied key prefix, if any.

/big splits files into 10MB chunks suffixed with .000, .001 etc. This is done without creating any temporary files on disk. A custom chunk size can be specified in MB, e.g. /big:0.1 creates chunks of about 100KB.

/backup causes only files with the archive attribute to be copied, and the archive attribute is reset after copying.

/sync only uploads files that do not exist on S3 or have been modified since last being uploaded. It can be used alone or in conjunction with the /sub option for a fast incremental backup of a whole directory.

/acl sets the ACL. To make files public use /acl:public-read

/sub copies an entire directory hierarchy. The keyprefix must be absent or end with a slash (/), and the path can be an existing directory. The /sub:withdelete option does the same but also deletes keys on S3 that start with the given keyprefix (if provided) but don't correspond to a local file.

/yes surpresses prompting on each delete with the /sub:withdelete option (currently disabled until feature is proven)

Last edited Oct 29, 2009 at 2:19 PM by maxc, version 2

Comments

jgallport Aug 3, 2015 at 7:29 PM 
Use the below if you want to set storage type

/storageclass:REDUCED_REDUNDANCY

jeorge_kabbi Feb 9, 2015 at 6:12 AM 
D:\Downloads>s3 put s3.docesam.medical/workcomputerbackup/mysqlbackup D:\cds\bac
kup\MySQLBackup\Latest\latestMysql.sql
s3.exe version 1.7 - check for updates at http://s3.codeplex.com

workcomputerbackup/mysqlbackuplatestMysql.sql

D:\Downloads>

so what is the problem ?