...
|
...
|
@@ -1,3 +1,8 @@
|
|
1
|
+
|
|
2
|
+.\" !!! IMPORTANT: This file is generated from s3cmd --help output using format-manpage.pl
|
|
3
|
+.\" !!! Do your changes either in s3cmd file or in 'format-manpage.pl' otherwise
|
|
4
|
+.\" !!! they will be overwritten!
|
|
5
|
+
|
1
|
6
|
.TH s3cmd 1
|
2
|
7
|
.SH NAME
|
3
|
8
|
s3cmd \- tool for managing Amazon S3 storage space and Amazon CloudFront content delivery network
|
...
|
...
|
@@ -62,10 +67,19 @@ Modify Bucket Policy
|
62
|
62
|
s3cmd \fBdelpolicy\fR \fIs3://BUCKET\fR
|
63
|
63
|
Delete Bucket Policy
|
64
|
64
|
.TP
|
|
65
|
+s3cmd \fBmultipart\fR \fIs3://BUCKET [Id]\fR
|
|
66
|
+show multipart uploads
|
|
67
|
+.TP
|
|
68
|
+s3cmd \fBabortmp\fR \fIs3://BUCKET/OBJECT Id\fR
|
|
69
|
+abort a multipart upload
|
|
70
|
+.TP
|
|
71
|
+s3cmd \fBlistmp\fR \fIs3://BUCKET/OBJECT Id\fR
|
|
72
|
+list parts of a multipart upload
|
|
73
|
+.TP
|
65
|
74
|
s3cmd \fBaccesslog\fR \fIs3://BUCKET\fR
|
66
|
75
|
Enable/disable bucket access logging
|
67
|
76
|
.TP
|
68
|
|
-s3cmd \fBsign\fR \fISTRING\-TO\-SIGN\fR
|
|
77
|
+s3cmd \fBsign\fR \fISTRING-TO-SIGN\fR
|
69
|
78
|
Sign arbitrary string using the secret key
|
70
|
79
|
.TP
|
71
|
80
|
s3cmd \fBsignurl\fR \fIs3://BUCKET/OBJECT expiry_epoch\fR
|
...
|
...
|
@@ -78,13 +92,13 @@ Fix invalid file names in a bucket
|
78
|
78
|
.PP
|
79
|
79
|
Commands for static WebSites configuration
|
80
|
80
|
.TP
|
81
|
|
-s3cmd \fBws\-create\fR \fIs3://BUCKET\fR
|
|
81
|
+s3cmd \fBws-create\fR \fIs3://BUCKET\fR
|
82
|
82
|
Create Website from bucket
|
83
|
83
|
.TP
|
84
|
|
-s3cmd \fBws\-delete\fR \fIs3://BUCKET\fR
|
|
84
|
+s3cmd \fBws-delete\fR \fIs3://BUCKET\fR
|
85
|
85
|
Delete Website
|
86
|
86
|
.TP
|
87
|
|
-s3cmd \fBws\-info\fR \fIs3://BUCKET\fR
|
|
87
|
+s3cmd \fBws-info\fR \fIs3://BUCKET\fR
|
88
|
88
|
Info about Website
|
89
|
89
|
|
90
|
90
|
|
...
|
...
|
@@ -123,13 +137,17 @@ changes you like.
|
123
|
123
|
show this help message and exit
|
124
|
124
|
.TP
|
125
|
125
|
\fB\-\-configure\fR
|
126
|
|
-Invoke interactive (re)configuration tool. Optionally use as '\-\-configure s3://come\-bucket' to test access to a specific bucket instead of attempting to list them all.
|
|
126
|
+Invoke interactive (re)configuration tool. Optionally
|
|
127
|
+use as '\fB--configure\fR s3://some-bucket' to test access
|
|
128
|
+to a specific bucket instead of attempting to list
|
|
129
|
+them all.
|
127
|
130
|
.TP
|
128
|
131
|
\fB\-c\fR FILE, \fB\-\-config\fR=FILE
|
129
|
132
|
Config file name. Defaults to /home/mludvig/.s3cfg
|
130
|
133
|
.TP
|
131
|
134
|
\fB\-\-dump\-config\fR
|
132
|
|
-Dump current configuration after parsing config files and command line options and exit.
|
|
135
|
+Dump current configuration after parsing config files
|
|
136
|
+and command line options and exit.
|
133
|
137
|
.TP
|
134
|
138
|
\fB\-\-access_key\fR=ACCESS_KEY
|
135
|
139
|
AWS Access Key
|
...
|
...
|
@@ -138,7 +156,10 @@ AWS Access Key
|
138
|
138
|
AWS Secret Key
|
139
|
139
|
.TP
|
140
|
140
|
\fB\-n\fR, \fB\-\-dry\-run\fR
|
141
|
|
-Only show what should be uploaded or downloaded but don't actually do it. May still perform S3 requests to get bucket listings and other information though (only for file transfer commands)
|
|
141
|
+Only show what should be uploaded or downloaded but
|
|
142
|
+don't actually do it. May still perform S3 requests to
|
|
143
|
+get bucket listings and other information though (only
|
|
144
|
+for file transfer commands)
|
142
|
145
|
.TP
|
143
|
146
|
\fB\-e\fR, \fB\-\-encrypt\fR
|
144
|
147
|
Encrypt files before uploading to S3.
|
...
|
...
|
@@ -150,34 +171,60 @@ Don't encrypt files.
|
150
|
150
|
Force overwrite and other dangerous operations.
|
151
|
151
|
.TP
|
152
|
152
|
\fB\-\-continue\fR
|
153
|
|
-Continue getting a partially downloaded file (only for [get] command).
|
|
153
|
+Continue getting a partially downloaded file (only for
|
|
154
|
+[get] command).
|
|
155
|
+.TP
|
|
156
|
+\fB\-\-continue\-put\fR
|
|
157
|
+Continue uploading partially uploaded files or
|
|
158
|
+multipart upload parts. Restarts/parts files that
|
|
159
|
+don't have matching size and md5. Skips files/parts
|
|
160
|
+that do. Note: md5sum checks are not always
|
|
161
|
+sufficient to check (part) file equality. Enable this
|
|
162
|
+at your own risk.
|
|
163
|
+.TP
|
|
164
|
+\fB\-\-upload\-id\fR=UPLOAD_ID
|
|
165
|
+UploadId for Multipart Upload, in case you want
|
|
166
|
+continue an existing upload (equivalent to \fB--continue-\fR
|
|
167
|
+put) and there are multiple partial uploads. Use
|
|
168
|
+s3cmd multipart [URI] to see what UploadIds are
|
|
169
|
+associated with the given URI.
|
154
|
170
|
.TP
|
155
|
171
|
\fB\-\-skip\-existing\fR
|
156
|
|
-Skip over files that exist at the destination (only for [get] and [sync] commands).
|
|
172
|
+Skip over files that exist at the destination (only
|
|
173
|
+for [get] and [sync] commands).
|
157
|
174
|
.TP
|
158
|
175
|
\fB\-r\fR, \fB\-\-recursive\fR
|
159
|
176
|
Recursive upload, download or removal.
|
160
|
177
|
.TP
|
161
|
178
|
\fB\-\-check\-md5\fR
|
162
|
|
-Check MD5 sums when comparing files for [sync]. (default)
|
|
179
|
+Check MD5 sums when comparing files for [sync].
|
|
180
|
+(default)
|
163
|
181
|
.TP
|
164
|
182
|
\fB\-\-no\-check\-md5\fR
|
165
|
|
-Do not check MD5 sums when comparing files for [sync]. Only size will be compared. May significantly speed up transfer but may also miss some changed files.
|
|
183
|
+Do not check MD5 sums when comparing files for [sync].
|
|
184
|
+Only size will be compared. May significantly speed up
|
|
185
|
+transfer but may also miss some changed files.
|
166
|
186
|
.TP
|
167
|
187
|
\fB\-P\fR, \fB\-\-acl\-public\fR
|
168
|
188
|
Store objects with ACL allowing read for anyone.
|
169
|
189
|
.TP
|
170
|
190
|
\fB\-\-acl\-private\fR
|
171
|
|
-Store objects with default ACL allowing access for you only.
|
|
191
|
+Store objects with default ACL allowing access for you
|
|
192
|
+only.
|
172
|
193
|
.TP
|
173
|
194
|
\fB\-\-acl\-grant\fR=PERMISSION:EMAIL or USER_CANONICAL_ID
|
174
|
|
-Grant stated permission to a given amazon user. Permission is one of: read, write, read_acp, write_acp, full_control, all
|
|
195
|
+Grant stated permission to a given amazon user.
|
|
196
|
+Permission is one of: read, write, read_acp,
|
|
197
|
+write_acp, full_control, all
|
175
|
198
|
.TP
|
176
|
199
|
\fB\-\-acl\-revoke\fR=PERMISSION:USER_CANONICAL_ID
|
177
|
|
-Revoke stated permission for a given amazon user. Permission is one of: read, write, read_acp, wr ite_acp, full_control, all
|
|
200
|
+Revoke stated permission for a given amazon user.
|
|
201
|
+Permission is one of: read, write, read_acp, wr
|
|
202
|
+ite_acp, full_control, all
|
178
|
203
|
.TP
|
179
|
204
|
\fB\-\-delete\-removed\fR
|
180
|
|
-Delete remote objects with no corresponding local file [sync]
|
|
205
|
+Delete remote objects with no corresponding local file
|
|
206
|
+[sync]
|
181
|
207
|
.TP
|
182
|
208
|
\fB\-\-no\-delete\-removed\fR
|
183
|
209
|
Don't delete remote objects.
|
...
|
...
|
@@ -188,109 +235,148 @@ Perform deletes after new uploads [sync]
|
188
|
188
|
\fB\-\-delay\-updates\fR
|
189
|
189
|
Put all updated files into place at end [sync]
|
190
|
190
|
.TP
|
|
191
|
+\fB\-\-max\-delete\fR=NUM
|
|
192
|
+Do not delete more than NUM files. [del] and [sync]
|
|
193
|
+.TP
|
191
|
194
|
\fB\-\-add\-destination\fR=ADDITIONAL_DESTINATIONS
|
192
|
|
-Additional destination for parallel uploads, in addition to last arg. May be repeated.
|
|
195
|
+Additional destination for parallel uploads, in
|
|
196
|
+addition to last arg. May be repeated.
|
193
|
197
|
.TP
|
194
|
198
|
\fB\-\-delete\-after\-fetch\fR
|
195
|
|
-Delete remote objects after fetching to local file (only for [get] and [sync] commands).
|
196
|
|
-.TP
|
197
|
|
-\fB\-\-max\-delete\fR=NUM
|
198
|
|
-Do not delete more than NUM files. If that limit would be exceeded, a warning is output and none are deleted. [del] and [sync]
|
|
199
|
+Delete remote objects after fetching to local file
|
|
200
|
+(only for [get] and [sync] commands).
|
199
|
201
|
.TP
|
200
|
202
|
\fB\-p\fR, \fB\-\-preserve\fR
|
201
|
|
-Preserve filesystem attributes (mode, ownership, timestamps). Default for [sync] command.
|
|
203
|
+Preserve filesystem attributes (mode, ownership,
|
|
204
|
+timestamps). Default for [sync] command.
|
202
|
205
|
.TP
|
203
|
206
|
\fB\-\-no\-preserve\fR
|
204
|
207
|
Don't store FS attributes
|
205
|
208
|
.TP
|
206
|
209
|
\fB\-\-exclude\fR=GLOB
|
207
|
|
-Filenames and paths matching GLOB will be excluded from sync
|
|
210
|
+Filenames and paths matching GLOB will be excluded
|
|
211
|
+from sync
|
208
|
212
|
.TP
|
209
|
213
|
\fB\-\-exclude\-from\fR=FILE
|
210
|
|
-Read \-\-exclude GLOBs from FILE
|
|
214
|
+Read --exclude GLOBs from FILE
|
211
|
215
|
.TP
|
212
|
216
|
\fB\-\-rexclude\fR=REGEXP
|
213
|
|
-Filenames and paths matching REGEXP (regular expression) will be excluded from sync
|
|
217
|
+Filenames and paths matching REGEXP (regular
|
|
218
|
+expression) will be excluded from sync
|
214
|
219
|
.TP
|
215
|
220
|
\fB\-\-rexclude\-from\fR=FILE
|
216
|
|
-Read \-\-rexclude REGEXPs from FILE
|
|
221
|
+Read --rexclude REGEXPs from FILE
|
217
|
222
|
.TP
|
218
|
223
|
\fB\-\-include\fR=GLOB
|
219
|
|
-Filenames and paths matching GLOB will be included even if previously excluded by one of \-\-(r)exclude(\-from) patterns
|
|
224
|
+Filenames and paths matching GLOB will be included
|
|
225
|
+even if previously excluded by one of
|
|
226
|
+\fB--(r)exclude(-from)\fR patterns
|
220
|
227
|
.TP
|
221
|
228
|
\fB\-\-include\-from\fR=FILE
|
222
|
|
-Read \-\-include GLOBs from FILE
|
|
229
|
+Read --include GLOBs from FILE
|
223
|
230
|
.TP
|
224
|
231
|
\fB\-\-rinclude\fR=REGEXP
|
225
|
|
-Same as \-\-include but uses REGEXP (regular expression) instead of GLOB
|
|
232
|
+Same as --include but uses REGEXP (regular expression)
|
|
233
|
+instead of GLOB
|
226
|
234
|
.TP
|
227
|
235
|
\fB\-\-rinclude\-from\fR=FILE
|
228
|
|
-Read \-\-rinclude REGEXPs from FILE
|
|
236
|
+Read --rinclude REGEXPs from FILE
|
|
237
|
+.TP
|
|
238
|
+\fB\-\-ignore\-failed\-copy\fR
|
|
239
|
+Don't exit unsuccessfully because of missing keys
|
229
|
240
|
.TP
|
230
|
241
|
\fB\-\-files\-from\fR=FILE
|
231
|
|
-Read list of source-file names from FILE. Use \- to read from stdin.
|
232
|
|
-May be repeated.
|
|
242
|
+Read list of source-file names from FILE. Use - to
|
|
243
|
+read from stdin.
|
233
|
244
|
.TP
|
234
|
245
|
\fB\-\-bucket\-location\fR=BUCKET_LOCATION
|
235
|
|
-Datacentre to create bucket in. As of now the datacenters are: US (default), EU, ap\-northeast\-1, ap\-southeast\-1, sa\-east\-1, us\-west\-1 and us\-west\-2
|
|
246
|
+Datacentre to create bucket in. As of now the
|
|
247
|
+datacenters are: US (default), EU, ap-northeast-1, ap-
|
|
248
|
+southeast-1, sa-east-1, us-west-1 and us-west-2
|
236
|
249
|
.TP
|
237
|
250
|
\fB\-\-reduced\-redundancy\fR, \fB\-\-rr\fR
|
238
|
|
-Store object with 'Reduced redundancy'. Lower per-GB price. [put, cp, mv]
|
|
251
|
+Store object with 'Reduced redundancy'. Lower per-GB
|
|
252
|
+price. [put, cp, mv]
|
239
|
253
|
.TP
|
240
|
254
|
\fB\-\-access\-logging\-target\-prefix\fR=LOG_TARGET_PREFIX
|
241
|
|
-Target prefix for access logs (S3 URI) (for [cfmodify] and [accesslog] commands)
|
|
255
|
+Target prefix for access logs (S3 URI) (for [cfmodify]
|
|
256
|
+and [accesslog] commands)
|
242
|
257
|
.TP
|
243
|
258
|
\fB\-\-no\-access\-logging\fR
|
244
|
|
-Disable access logging (for [cfmodify] and [accesslog] commands)
|
|
259
|
+Disable access logging (for [cfmodify] and [accesslog]
|
|
260
|
+commands)
|
245
|
261
|
.TP
|
246
|
|
-\fB\-\-default\-mime\-type\fR
|
247
|
|
-Default MIME-type for stored objects. Application default is binary/octet\-stream.
|
|
262
|
+\fB\-\-default\-mime\-type\fR=DEFAULT_MIME_TYPE
|
|
263
|
+Default MIME-type for stored objects. Application
|
|
264
|
+default is binary/octet-stream.
|
248
|
265
|
.TP
|
249
|
266
|
\fB\-M\fR, \fB\-\-guess\-mime\-type\fR
|
250
|
|
-Guess MIME-type of files by their extension or mime magic. Fall back to default MIME-type as specified by \fB\-\-default\-mime\-type\fR option
|
|
267
|
+Guess MIME-type of files by their extension or mime
|
|
268
|
+magic. Fall back to default MIME-Type as specified by
|
|
269
|
+\fB--default-mime-type\fR option
|
251
|
270
|
.TP
|
252
|
271
|
\fB\-\-no\-guess\-mime\-type\fR
|
253
|
|
-Don't guess MIME-type and use the default type instead.
|
|
272
|
+Don't guess MIME-type and use the default type
|
|
273
|
+instead.
|
254
|
274
|
.TP
|
255
|
275
|
\fB\-\-no\-mime\-magic\fR
|
256
|
276
|
Don't use mime magic when guessing MIME-type.
|
257
|
277
|
.TP
|
258
|
278
|
\fB\-m\fR MIME/TYPE, \fB\-\-mime\-type\fR=MIME/TYPE
|
259
|
|
-Force MIME-type. Override both \fB\-\-default\-mime\-type\fR and \fB\-\-guess\-mime\-type\fR.
|
|
279
|
+Force MIME-type. Override both \fB--default-mime-type\fR and
|
|
280
|
+\fB--guess-mime-type\fR.
|
260
|
281
|
.TP
|
261
|
282
|
\fB\-\-add\-header\fR=NAME:VALUE
|
262
|
|
-Add a given HTTP header to the upload request. Can be used multiple times. For instance set 'Expires' or 'Cache\-Control' headers (or both) using this options if you like.
|
|
283
|
+Add a given HTTP header to the upload request. Can be
|
|
284
|
+used multiple times. For instance set 'Expires' or
|
|
285
|
+'Cache-Control' headers (or both) using this options
|
|
286
|
+if you like.
|
|
287
|
+.TP
|
|
288
|
+\fB\-\-server\-side\-encryption\fR
|
|
289
|
+Specifies that server-side encryption will be used
|
|
290
|
+when putting objects.
|
263
|
291
|
.TP
|
264
|
292
|
\fB\-\-encoding\fR=ENCODING
|
265
|
|
-Override autodetected terminal and filesystem encoding (character set). Autodetected: UTF\-8
|
|
293
|
+Override autodetected terminal and filesystem encoding
|
|
294
|
+(character set). Autodetected: UTF-8
|
266
|
295
|
.TP
|
267
|
296
|
\fB\-\-disable\-content\-encoding\fR
|
268
|
|
-Don't include a Content-encoding header to the the uploaded objects. Default: Off
|
|
297
|
+Don't include a Content-encoding header to the the
|
|
298
|
+uploaded objects
|
269
|
299
|
.TP
|
270
|
300
|
\fB\-\-add\-encoding\-exts\fR=EXTENSIONs
|
271
|
|
-Add encoding to these comma delimited extensions i.e. (css,js,html) when uploading to S3 )
|
|
301
|
+Add encoding to these comma delimited extensions i.e.
|
|
302
|
+(css,js,html) when uploading to S3 )
|
272
|
303
|
.TP
|
273
|
304
|
\fB\-\-verbatim\fR
|
274
|
|
-Use the S3 name as given on the command line. No pre-processing, encoding, etc. Use with caution!
|
|
305
|
+Use the S3 name as given on the command line. No pre-
|
|
306
|
+processing, encoding, etc. Use with caution!
|
275
|
307
|
.TP
|
276
|
308
|
\fB\-\-disable\-multipart\fR
|
277
|
|
-Disable multipart upload on files bigger than \-\-multipart\-chunk\-size\-mb
|
|
309
|
+Disable multipart upload on files bigger than
|
|
310
|
+\fB--multipart-chunk-size-mb\fR
|
278
|
311
|
.TP
|
279
|
312
|
\fB\-\-multipart\-chunk\-size\-mb\fR=SIZE
|
280
|
|
-Size of each chunk of a multipart upload. Files bigger than SIZE are automatically uploaded as multithreaded-multipart, smaller files are uploaded using the traditional method. SIZE is in Mega-Bytes,
|
281
|
|
-default chunk size is 15MB, minimum allowed chunk size is 5MB, maximum is 5GB.
|
|
313
|
+Size of each chunk of a multipart upload. Files bigger
|
|
314
|
+than SIZE are automatically uploaded as multithreaded-
|
|
315
|
+multipart, smaller files are uploaded using the
|
|
316
|
+traditional method. SIZE is in Mega-Bytes, default
|
|
317
|
+chunk size is noneMB, minimum allowed chunk size is
|
|
318
|
+5MB, maximum is 5GB.
|
282
|
319
|
.TP
|
283
|
320
|
\fB\-\-list\-md5\fR
|
284
|
|
-Include MD5 sums in bucket listings (only for 'ls' command).
|
|
321
|
+Include MD5 sums in bucket listings (only for 'ls'
|
|
322
|
+command).
|
285
|
323
|
.TP
|
286
|
324
|
\fB\-H\fR, \fB\-\-human\-readable\-sizes\fR
|
287
|
|
-Print sizes in human readable form (eg 1kB instead of 1234).
|
|
325
|
+Print sizes in human readable form (eg 1kB instead of
|
|
326
|
+1234).
|
288
|
327
|
.TP
|
289
|
328
|
\fB\-\-ws\-index\fR=WEBSITE_INDEX
|
290
|
|
-Name of index-document (only for [ws\-create] command)
|
|
329
|
+Name of index-document (only for [ws-create] command)
|
291
|
330
|
.TP
|
292
|
331
|
\fB\-\-ws\-error\fR=WEBSITE_ERROR
|
293
|
|
-Name of error-document (only for [ws\-create] command)
|
|
332
|
+Name of error-document (only for [ws-create] command)
|
294
|
333
|
.TP
|
295
|
334
|
\fB\-\-progress\fR
|
296
|
335
|
Display progress meter (default on TTY).
|
...
|
...
|
@@ -299,32 +385,43 @@ Display progress meter (default on TTY).
|
299
|
299
|
Don't display progress meter (default on non-TTY).
|
300
|
300
|
.TP
|
301
|
301
|
\fB\-\-enable\fR
|
302
|
|
-Enable given CloudFront distribution (only for [cfmodify] command)
|
|
302
|
+Enable given CloudFront distribution (only for
|
|
303
|
+[cfmodify] command)
|
303
|
304
|
.TP
|
304
|
305
|
\fB\-\-disable\fR
|
305
|
|
-Enable given CloudFront distribution (only for [cfmodify] command)
|
|
306
|
+Enable given CloudFront distribution (only for
|
|
307
|
+[cfmodify] command)
|
306
|
308
|
.TP
|
307
|
309
|
\fB\-\-cf\-invalidate\fR
|
308
|
|
-Invalidate the uploaded filed in CloudFront. Also see [cfinval] command.
|
|
310
|
+Invalidate the uploaded filed in CloudFront. Also see
|
|
311
|
+[cfinval] command.
|
309
|
312
|
.TP
|
310
|
313
|
\fB\-\-cf\-invalidate\-default\-index\fR
|
311
|
|
-When using Custom Origin and S3 static website, invalidate the default index file.
|
|
314
|
+When using Custom Origin and S3 static website,
|
|
315
|
+invalidate the default index file.
|
312
|
316
|
.TP
|
313
|
317
|
\fB\-\-cf\-no\-invalidate\-default\-index\-root\fR
|
314
|
|
-When using Custom Origin and S3 static website, don't invalidate the path to the default index file.
|
|
318
|
+When using Custom Origin and S3 static website, don't
|
|
319
|
+invalidate the path to the default index file.
|
315
|
320
|
.TP
|
316
|
321
|
\fB\-\-cf\-add\-cname\fR=CNAME
|
317
|
|
-Add given CNAME to a CloudFront distribution (only for [cfcreate] and [cfmodify] commands)
|
|
322
|
+Add given CNAME to a CloudFront distribution (only for
|
|
323
|
+[cfcreate] and [cfmodify] commands)
|
318
|
324
|
.TP
|
319
|
325
|
\fB\-\-cf\-remove\-cname\fR=CNAME
|
320
|
|
-Remove given CNAME from a CloudFront distribution (only for [cfmodify] command)
|
|
326
|
+Remove given CNAME from a CloudFront distribution
|
|
327
|
+(only for [cfmodify] command)
|
321
|
328
|
.TP
|
322
|
329
|
\fB\-\-cf\-comment\fR=COMMENT
|
323
|
|
-Set COMMENT for a given CloudFront distribution (only for [cfcreate] and [cfmodify] commands)
|
|
330
|
+Set COMMENT for a given CloudFront distribution (only
|
|
331
|
+for [cfcreate] and [cfmodify] commands)
|
324
|
332
|
.TP
|
325
|
333
|
\fB\-\-cf\-default\-root\-object\fR=DEFAULT_ROOT_OBJECT
|
326
|
|
-Set the default root object to return when no object is specified in the URL. Use a relative path, i.e. default/index.html instead of /default/index.html or s3://bucket/default/index.html (only for
|
327
|
|
-[cfcreate] and [cfmodify] commands)
|
|
334
|
+Set the default root object to return when no object
|
|
335
|
+is specified in the URL. Use a relative path, i.e.
|
|
336
|
+default/index.html instead of /default/index.html or
|
|
337
|
+s3://bucket/default/index.html (only for [cfcreate]
|
|
338
|
+and [cfmodify] commands)
|
328
|
339
|
.TP
|
329
|
340
|
\fB\-v\fR, \fB\-\-verbose\fR
|
330
|
341
|
Enable verbose output.
|
...
|
...
|
@@ -333,7 +430,7 @@ Enable verbose output.
|
333
|
333
|
Enable debug output.
|
334
|
334
|
.TP
|
335
|
335
|
\fB\-\-version\fR
|
336
|
|
-Show s3cmd version (1.5.0-alpha3) and exit.
|
|
336
|
+Show s3cmd version (1.5.0-beta1) and exit.
|
337
|
337
|
.TP
|
338
|
338
|
\fB\-F\fR, \fB\-\-follow\-symlinks\fR
|
339
|
339
|
Follow symbolic links as if they are regular files
|
...
|
...
|
@@ -352,11 +449,11 @@ synchronising complete directory trees to or from remote S3 storage. To some ext
|
352
|
352
|
.PP
|
353
|
353
|
Basic usage common in backup scenarios is as simple as:
|
354
|
354
|
.nf
|
355
|
|
- s3cmd sync /local/path/ s3://test\-bucket/backup/
|
|
355
|
+ s3cmd sync /local/path/ s3://test-bucket/backup/
|
356
|
356
|
.fi
|
357
|
357
|
.PP
|
358
|
358
|
This command will find all files under /local/path directory and copy them
|
359
|
|
-to corresponding paths under s3://test\-bucket/backup on the remote side.
|
|
359
|
+to corresponding paths under s3://test-bucket/backup on the remote side.
|
360
|
360
|
For example:
|
361
|
361
|
.nf
|
362
|
362
|
/local/path/\fBfile1.ext\fR \-> s3://bucket/backup/\fBfile1.ext\fR
|
...
|
...
|
@@ -366,7 +463,7 @@ For example:
|
366
|
366
|
However if the local path doesn't end with a slash the last directory's name
|
367
|
367
|
is used on the remote side as well. Compare these with the previous example:
|
368
|
368
|
.nf
|
369
|
|
- s3cmd sync /local/path s3://test\-bucket/backup/
|
|
369
|
+ s3cmd sync /local/path s3://test-bucket/backup/
|
370
|
370
|
.fi
|
371
|
371
|
will sync:
|
372
|
372
|
.nf
|
...
|
...
|
@@ -376,7 +473,7 @@ will sync:
|
376
|
376
|
.PP
|
377
|
377
|
To retrieve the files back from S3 use inverted syntax:
|
378
|
378
|
.nf
|
379
|
|
- s3cmd sync s3://test\-bucket/backup/ /tmp/restore/
|
|
379
|
+ s3cmd sync s3://test-bucket/backup/ /tmp/restore/
|
380
|
380
|
.fi
|
381
|
381
|
that will download files:
|
382
|
382
|
.nf
|
...
|
...
|
@@ -387,7 +484,7 @@ that will download files:
|
387
|
387
|
Without the trailing slash on source the behaviour is similar to
|
388
|
388
|
what has been demonstrated with upload:
|
389
|
389
|
.nf
|
390
|
|
- s3cmd sync s3://test\-bucket/backup /tmp/restore/
|
|
390
|
+ s3cmd sync s3://test-bucket/backup /tmp/restore/
|
391
|
391
|
.fi
|
392
|
392
|
will download the files as:
|
393
|
393
|
.nf
|
...
|
...
|
@@ -419,14 +516,9 @@ about matching file names against exclude and include rules.
|
419
|
419
|
.PP
|
420
|
420
|
For example to exclude all files with ".jpg" extension except those beginning with a number use:
|
421
|
421
|
.PP
|
422
|
|
- \-\-exclude '*.jpg' \-\-rinclude '[0\-9].*\.jpg'
|
423
|
|
-
|
424
|
|
-.SH ENVIRONMENT
|
425
|
|
-.TP
|
426
|
|
-.B TMP
|
427
|
|
-Directory used to write temp files (/tmp by default)
|
|
422
|
+ \-\-exclude '*.jpg' \-\-rinclude '[0-9].*\.jpg'
|
428
|
423
|
.SH SEE ALSO
|
429
|
|
-For the most up to date list of options run
|
|
424
|
+For the most up to date list of options run
|
430
|
425
|
.B s3cmd \-\-help
|
431
|
426
|
.br
|
432
|
427
|
For more info about usage, examples and other related info visit project homepage at
|