Update mc documetation move everything pointing to localhost to play.minio.io
This commit is contained in:
+10
-14
@@ -64,7 +64,7 @@ EXAMPLES:
|
||||
mc {{.Name}} - {{.Usage}}
|
||||
|
||||
USAGE:
|
||||
mc {{.Name}}{{if .Flags}} [ARGS...]{{end}} SOURCE {{if .Description}}
|
||||
mc {{.Name}}{{if .Flags}} [ARGS...]{{end}} SOURCE [SOURCE...] {{if .Description}}
|
||||
|
||||
DESCRIPTION:
|
||||
{{.Description}}{{end}}{{if .Flags}}
|
||||
@@ -75,7 +75,7 @@ FLAGS:
|
||||
|
||||
EXAMPLES:
|
||||
1. Concantenate an object from Amazon S3 object storage to mplayer standard input
|
||||
$ mc {{.Name}} https://s3.amazonaws.com/jukebox/klingon_opera_aktuh_maylotah.ogg | mplayer -
|
||||
$ mc {{.Name}} https://s3.amazonaws.com/ferenginar/klingon_opera_aktuh_maylotah.ogg | mplayer -
|
||||
|
||||
2. Concantenate a file from local filesystem to standard output.
|
||||
$ mc {{.Name}} khitomer-accords.txt
|
||||
@@ -106,10 +106,10 @@ EXAMPLES:
|
||||
$ mc {{.Name}} Music/*.ogg https://s3.amazonaws.com/jukebox/
|
||||
|
||||
2. Copy a bucket recursively from Minio object storage to Amazon S3 object storage
|
||||
$ mc {{.Name}} http://localhost:9000/photos/burningman2011... https://s3.amazonaws.com/private-photos/burningman/
|
||||
$ mc {{.Name}} http://play.minio.io:9000/photos/burningman2011... https://s3.amazonaws.com/private-photos/burningman/
|
||||
|
||||
3. Copy multiple local folders recursively to Minio object storage
|
||||
$ mc {{.Name}} backup/2014/... backup/2015/... http://localhost:9000/archive/
|
||||
$ mc {{.Name}} backup/2014/... backup/2015/... http://play.minio.io:9000/archive/
|
||||
|
||||
4. Copy a bucket recursively from aliased Amazon S3 object storage to local filesystem on Windows.
|
||||
$ mc {{.Name}} s3:documents/2014/... C:\backup\2014
|
||||
@@ -136,7 +136,7 @@ FLAGS:
|
||||
|
||||
EXAMPLES:
|
||||
1. List objects recursively on Minio object storage
|
||||
$ mc {{.Name}} http://localhost:9000/backup/...
|
||||
$ mc {{.Name}} http://play.minio.io:9000/backup/...
|
||||
[2015-03-28 12:47:50 PDT] 34MiB 2006-Jan-1/backup.tar.gz
|
||||
[2015-03-31 14:46:33 PDT] 55MiB 2006-Mar-1/backup.tar.gz
|
||||
|
||||
@@ -146,7 +146,7 @@ EXAMPLES:
|
||||
[2015-01-15 00:05:40 PST] 0B zek/
|
||||
|
||||
3. List buckets from Amazon S3 object storage and recursively list objects from Minio object storage
|
||||
$ mc {{.Name}} https://s3.amazonaws.com/ http://localhost:9000/backup/...
|
||||
$ mc {{.Name}} https://s3.amazonaws.com/ http://play.minio.io:9000/backup/...
|
||||
2015-01-15 00:05:40 PST 0B zek/
|
||||
2015-03-31 14:46:33 PDT 55MiB 2006-Mar-1/backup.tar.gz
|
||||
|
||||
@@ -187,10 +187,10 @@ EXAMPLES:
|
||||
$ mc {{.Name}} star-trek-episode-10-season4.ogg https://s3.amazonaws.com/trekarchive
|
||||
|
||||
2. Sync a bucket recursively from Minio object storage to multiple buckets on Amazon S3 object storage
|
||||
$ mc {{.Name}} http://localhost:9000/photos/2014... https://s3.amazonaws.com/backup-photos https://s3.amazonaws.com/my-photos
|
||||
$ mc {{.Name}} http://play.minio.io:9000/photos/2014... https://s3.amazonaws.com/backup-photos https://s3.amazonaws.com/my-photos
|
||||
|
||||
3. Copy a local folder recursively to Minio object storage and Amazon S3 object storage
|
||||
$ mc {{.Name}} backup/... http://localhost:9000/archive https://s3.amazonaws.com/archive
|
||||
$ mc {{.Name}} backup/... http://play.minio.io:9000/archive https://s3.amazonaws.com/archive
|
||||
|
||||
4. Sync a bucket from aliased Amazon S3 object storage to multiple folders on Windows.
|
||||
$ mc {{.Name}} s3:documents/2014/... C:\backup\2014 C:\shared\volume\backup\2014
|
||||
@@ -219,10 +219,10 @@ EXAMPLES:
|
||||
$ mc {{.Name}} https://s3.amazonaws.com/public-document-store
|
||||
|
||||
2. Create a bucket on Minio object storage
|
||||
$ mc {{.Name}} http://localhost:9000/mongodb-backup
|
||||
$ mc {{.Name}} http://play.minio.io:9000/mongodb-backup
|
||||
|
||||
3. Create multiple buckets on Amazon S3 object storage and Minio object storage
|
||||
$ mc {{.Name}} https://s3.amazonaws.com/public-photo-store https://s3.amazonaws.com/public-store http://localhost:9000/mongodb-backup
|
||||
$ mc {{.Name}} https://s3.amazonaws.com/public-photo-store http://play.minio.io:9000/mongodb-backup
|
||||
|
||||
`,
|
||||
}
|
||||
@@ -265,15 +265,11 @@ EXAMPLES:
|
||||
|
||||
USAGE:
|
||||
mc {{.Name}}{{if .Flags}} [ARGS...]{{end}} check
|
||||
mc {{.Name}}{{if .Flags}} [ARGS...]{{end}} install
|
||||
|
||||
EXAMPLES:
|
||||
1. Check for new updates
|
||||
$ mc update check
|
||||
|
||||
2. Download new minio client locally and update
|
||||
$ mc update install
|
||||
|
||||
`,
|
||||
}
|
||||
)
|
||||
|
||||
@@ -10,12 +10,11 @@ USAGE:
|
||||
EXAMPLES:
|
||||
|
||||
1. Set bucket to "private" on Amazon S3 object storage
|
||||
$ mc access private https://s3.amazonaws.com/burningman2011
|
||||
$ mc access private https://s3.amazonaws.com/burningman2011
|
||||
|
||||
2. Set bucket to "public" on Amazon S3 object storage
|
||||
$ mc access public https://s3.amazonaws.com/shared
|
||||
$ mc access public https://s3.amazonaws.com/shared
|
||||
|
||||
3. Set folder to world readwrite (chmod 777) on local filesystem
|
||||
$ mc access public /shared/Music
|
||||
|
||||
```
|
||||
$ mc access public /shared/Music
|
||||
```
|
||||
|
||||
@@ -5,15 +5,15 @@ NAME:
|
||||
mc cat - Concantenate objects or files to standard output
|
||||
|
||||
USAGE:
|
||||
mc cat SOURCE
|
||||
mc cat SOURCE [SOURCE...]
|
||||
|
||||
EXAMPLES:
|
||||
1. Concantenate an object from Amazon S3 object storage to mplayer standard input
|
||||
$ mc cat https://s3.amazonaws.com/jukebox/klingon_opera_aktuh_maylotah.ogg | mplayer -
|
||||
$ mc cat https://s3.amazonaws.com/ferenginar/klingon_opera_aktuh_maylotah.ogg | mplayer -
|
||||
|
||||
2. Concantenate a file from local filesystem to standard output.
|
||||
$ mc cat khitomer-accords.txt
|
||||
$ mc cat khitomer-accords.txt
|
||||
|
||||
3. Concantenate multiple files from local filesystem to standard output.
|
||||
$ mc cat *.txt > newfile.txt
|
||||
```
|
||||
$ mc cat *.txt > newfile.txt
|
||||
```
|
||||
|
||||
@@ -2,19 +2,16 @@
|
||||
|
||||
```go
|
||||
NAME:
|
||||
mc config - Generate configuration "/home/harsha/.mc/config.json" file.
|
||||
mc config - Generate configuration "${HOME}/.mc/config.json" file.
|
||||
|
||||
USAGE:
|
||||
mc config generate
|
||||
|
||||
FLAGS:
|
||||
--alias Add URL aliases into config
|
||||
mc config alias NAME HOSTURL
|
||||
|
||||
EXAMPLES:
|
||||
1. Generate mc config
|
||||
$ mc config generate
|
||||
$ mc config generate
|
||||
|
||||
2. Add alias URLs
|
||||
$ mc config --alias "zek https://s3.amazonaws.com/"
|
||||
|
||||
```
|
||||
$ mc config alias zek https://s3.amazonaws.com/
|
||||
```
|
||||
|
||||
+9
-10
@@ -2,22 +2,21 @@
|
||||
|
||||
```go
|
||||
NAME:
|
||||
mc cp - Copy objects and files
|
||||
mc cp - Copy objects and files from multiple sources single destination
|
||||
|
||||
USAGE:
|
||||
mc cp SOURCE TARGET [TARGET...]
|
||||
|
||||
EXAMPLES:
|
||||
1. Copy an object from Amazon S3 object storage to local fileystem.
|
||||
$ mc cp Music/*.ogg https://s3.amazonaws.com/jukebox/
|
||||
1. Copy list of objects from local file system to Amazon S3 object storage
|
||||
$ mc cp Music/*.ogg https://s3.amazonaws.com/jukebox/
|
||||
|
||||
2. Copy a bucket recursively from Minio object storage to Amazon S3 object storage
|
||||
$ mc cp http://localhost:9000/photos/burningman2011... https://s3.amazonaws.com/burningman/
|
||||
$ mc cp http://play.minio.io:9000/photos/burningman2011... https://s3.amazonaws.com/private-photos/burningman/
|
||||
|
||||
3. Copy a local folder recursively to Minio object storage and Amazon S3 object storage
|
||||
$ mc cp backup/... http://localhost:9000/archive/
|
||||
3. Copy multiple local folders recursively to Minio object storage
|
||||
$ mc cp backup/2014/... backup/2015/... http://play.minio.io:9000/archive/
|
||||
|
||||
4. Copy an object from Amazon S3 object storage to local filesystem on Windows.
|
||||
$ mc cp s3:documents/2014/... backup/2014
|
||||
|
||||
```
|
||||
4. Copy a bucket recursively from aliased Amazon S3 object storage to local filesystem on Windows.
|
||||
$ mc cp s3:documents/2014/... C:\backup\2014
|
||||
```
|
||||
|
||||
+17
-17
@@ -9,30 +9,30 @@ USAGE:
|
||||
|
||||
EXAMPLES:
|
||||
1. List objects recursively on Minio object storage
|
||||
$ mc ls http://localhost:9000/backup/...
|
||||
[2015-03-28 12:47:50 PDT] 34MiB 2006-Jan-1/backup.tar.gz
|
||||
[2015-03-31 14:46:33 PDT] 55MiB 2006-Mar-1/backup.tar.gz
|
||||
$ mc ls http://play.minio.io:9000/backup/...
|
||||
[2015-03-28 12:47:50 PDT] 34MiB 2006-Jan-1/backup.tar.gz
|
||||
[2015-03-31 14:46:33 PDT] 55MiB 2006-Mar-1/backup.tar.gz
|
||||
|
||||
2. List buckets on Amazon S3 object storage
|
||||
$ mc ls https://s3.amazonaws.com/
|
||||
[2015-01-20 15:42:00 PST] 0B rom/
|
||||
[2015-01-15 00:05:40 PST] 0B zek/
|
||||
$ mc ls https://s3.amazonaws.com/
|
||||
[2015-01-20 15:42:00 PST] 0B rom/
|
||||
[2015-01-15 00:05:40 PST] 0B zek/
|
||||
|
||||
3. List buckets from Amazon S3 object storage and recursively list objects from Minio object storage
|
||||
$ mc ls https://s3.amazonaws.com/ http://localhost:9000/backup/...
|
||||
2015-01-15 00:05:40 PST 0B zek/
|
||||
2015-03-31 14:46:33 PDT 55MiB 2006-Mar-1/backup.tar.gz
|
||||
$ mc ls https://s3.amazonaws.com/ http://play.minio.io:9000/backup/...
|
||||
[2015-01-15 00:05:40 PST] 0B zek/
|
||||
[2015-03-31 14:46:33 PDT] 55MiB 2006-Mar-1/backup.tar.gz
|
||||
|
||||
4. List files recursively on local filesystem on Windows
|
||||
$ mc ls C:\Users\Worf\...
|
||||
[2015-03-28 12:47:50 PDT] 11.00MiB Martok\Klingon Council Ministers.pdf
|
||||
[2015-03-31 14:46:33 PDT] 15.00MiB Gowron\Khitomer Conference Details.pdf
|
||||
$ mc ls C:\Users\Worf\...
|
||||
[2015-03-28 12:47:50 PDT] 11MiB Martok\Klingon Council Ministers.pdf
|
||||
[2015-03-31 14:46:33 PDT] 15MiB Gowron\Khitomer Conference Details.pdf
|
||||
|
||||
5. List files non recursively on local filesystem
|
||||
$ mc ls /usr/lib/llvm-3.4
|
||||
[2015-04-01 14:57:17 PDT] 12KiB lib/
|
||||
[2015-04-01 14:57:17 PDT] 4.0KiB include/
|
||||
[2015-04-01 14:57:10 PDT] 4.0KiB build/
|
||||
[2015-04-01 14:57:07 PDT] 4.0KiB bin/
|
||||
$ mc ls /usr/lib/llvm-3.4
|
||||
[2015-04-01 14:57:17 PDT] 12KiB lib/
|
||||
[2015-04-01 14:57:17 PDT] 4.0KiB include/
|
||||
[2015-04-01 14:57:10 PDT] 4.0KiB build/
|
||||
[2015-04-01 14:57:07 PDT] 4.0KiB bin/
|
||||
|
||||
```
|
||||
|
||||
+4
-5
@@ -9,12 +9,11 @@ USAGE:
|
||||
|
||||
EXAMPLES:
|
||||
1. Create a bucket on Amazon S3 object storage
|
||||
$ mc mb https://s3.amazonaws.com/public-document-store
|
||||
$ mc mb https://s3.amazonaws.com/public-document-store
|
||||
|
||||
2. Create a bucket on Minio object storage
|
||||
$ mc mb http://localhost:9000/mongodb-backup
|
||||
$ mc mb http://play.minio.io:9000/mongodb-backup
|
||||
|
||||
3. Create multiple buckets on Amazon S3 object storage and Minio object storage
|
||||
$ mc mb https://s3.amazonaws.com/public-photo-store https://s3.amazonaws.com/public-store http://localhost:9000/mongodb-backup
|
||||
|
||||
```
|
||||
$ mc mb https://s3.amazonaws.com/public-photo-store http://play.minio.io:9000/mongodb-backup
|
||||
```
|
||||
|
||||
@@ -0,0 +1,22 @@
|
||||
#### sync
|
||||
|
||||
```go
|
||||
NAME:
|
||||
mc sync - Copies files and objects from single source to multiple destinations
|
||||
|
||||
USAGE:
|
||||
mc sync TARGET [TARGET...]
|
||||
|
||||
EXAMPLES:
|
||||
1. Sync an object from local filesystem to Amazon S3 object storage
|
||||
$ mc sync star-trek-episode-10-season4.ogg https://s3.amazonaws.com/trekarchive
|
||||
|
||||
2. Sync a bucket recursively from Minio object storage to multiple buckets on Amazon S3 object storage
|
||||
$ mc sync http://play.minio.io:9000/photos/2014... https://s3.amazonaws.com/backup-photos https://s3.amazonaws.com/my-photos
|
||||
|
||||
3. Copy a local folder recursively to Minio object storage and Amazon S3 object storage
|
||||
$ mc sync backup/... http://play.minio.io:9000/archive https://s3.amazonaws.com/archive
|
||||
|
||||
4. Sync a bucket from aliased Amazon S3 object storage to multiple folders on Windows.
|
||||
$ mc sync s3:documents/2014/... C:\backup\2014 C:\shared\volume\backup\2014
|
||||
```
|
||||
@@ -0,0 +1,14 @@
|
||||
#### update
|
||||
|
||||
```go
|
||||
Name:
|
||||
mc update - Check for new software updates
|
||||
|
||||
USAGE:
|
||||
mc update check
|
||||
|
||||
EXAMPLES:
|
||||
1. Check for new updates
|
||||
$ mc update check
|
||||
|
||||
```
|
||||
Reference in New Issue
Block a user