From 6a6f2ec6f946a7122a80a6744fd344cb0218d78a Mon Sep 17 00:00:00 2001 From: Harshavardhana Date: Fri, 8 May 2015 20:54:39 -0700 Subject: [PATCH] Update mc documetation move everything pointing to localhost to play.minio.io --- cmd-options.go | 24 ++++++++++-------------- docs/commands/access.md | 9 ++++----- docs/commands/cat.md | 10 +++++----- docs/commands/config.md | 13 +++++-------- docs/commands/cp.md | 19 +++++++++---------- docs/commands/ls.md | 34 +++++++++++++++++----------------- docs/commands/mb.md | 9 ++++----- docs/commands/sync.md | 22 ++++++++++++++++++++++ docs/commands/update.md | 14 ++++++++++++++ 9 files changed, 90 insertions(+), 64 deletions(-) create mode 100644 docs/commands/sync.md create mode 100644 docs/commands/update.md diff --git a/cmd-options.go b/cmd-options.go index 21297044..bb0ab2a4 100644 --- a/cmd-options.go +++ b/cmd-options.go @@ -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 - `, } ) diff --git a/docs/commands/access.md b/docs/commands/access.md index 7edaec00..4a170cf2 100644 --- a/docs/commands/access.md +++ b/docs/commands/access.md @@ -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 - -``` \ No newline at end of file + $ mc access public /shared/Music +``` diff --git a/docs/commands/cat.md b/docs/commands/cat.md index fbf41da2..ebd87e53 100644 --- a/docs/commands/cat.md +++ b/docs/commands/cat.md @@ -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 -``` \ No newline at end of file + $ mc cat *.txt > newfile.txt +``` diff --git a/docs/commands/config.md b/docs/commands/config.md index 7770fc4c..612b3982 100644 --- a/docs/commands/config.md +++ b/docs/commands/config.md @@ -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/ + ``` diff --git a/docs/commands/cp.md b/docs/commands/cp.md index 314acad8..867fb909 100644 --- a/docs/commands/cp.md +++ b/docs/commands/cp.md @@ -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 - -``` \ No newline at end of file + 4. Copy a bucket recursively from aliased Amazon S3 object storage to local filesystem on Windows. + $ mc cp s3:documents/2014/... C:\backup\2014 +``` diff --git a/docs/commands/ls.md b/docs/commands/ls.md index bbbe23a8..6a1e14fc 100644 --- a/docs/commands/ls.md +++ b/docs/commands/ls.md @@ -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/ ``` diff --git a/docs/commands/mb.md b/docs/commands/mb.md index c4b7529b..925489a9 100644 --- a/docs/commands/mb.md +++ b/docs/commands/mb.md @@ -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 - -``` \ No newline at end of file + $ mc mb https://s3.amazonaws.com/public-photo-store http://play.minio.io:9000/mongodb-backup +``` diff --git a/docs/commands/sync.md b/docs/commands/sync.md new file mode 100644 index 00000000..02fb7fdf --- /dev/null +++ b/docs/commands/sync.md @@ -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 +``` diff --git a/docs/commands/update.md b/docs/commands/update.md new file mode 100644 index 00000000..e10a732a --- /dev/null +++ b/docs/commands/update.md @@ -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 + +``` \ No newline at end of file