doc: add info about --attr flag for cp command (#2793)
This commit is contained in:
@@ -526,6 +526,7 @@ FLAGS:
|
||||
--storage-class value, --sc value set storage class for new object(s) on target
|
||||
--encrypt value encrypt/decrypt objects (using server-side encryption with server managed keys)
|
||||
--encrypt-key value encrypt/decrypt objects (using server-side encryption with customer provided keys)
|
||||
--attr apply metadata to objects (format: KeyName1=string,KeyName2=string)
|
||||
--help, -h show help
|
||||
|
||||
ENVIRONMENT VARIABLES:
|
||||
@@ -562,6 +563,13 @@ encryptedobject: 14 B / 14 B ▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓
|
||||
```
|
||||
Notice that two different aliases myminio1 and myminio2 are used for the same endpoint to provide the old secretkey and the newly rotated key.
|
||||
|
||||
*Example: Copy a javascript file to object storage and assign Cache-Control header to the uploaded object*
|
||||
|
||||
```sh
|
||||
mc cp --attr Cache-Control=no-cache myscript.js play/mybucket
|
||||
myscript.js: 14 B / 14 B ▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓ 100.00 % 41 B/s 0
|
||||
```
|
||||
|
||||
<a name="rm"></a>
|
||||
### Command `rm` - Remove Objects
|
||||
Use `rm` command to remove file or object
|
||||
|
||||
Reference in New Issue
Block a user