Update docs for share, session and config
This commit is contained in:
+1
-1
@@ -30,7 +30,7 @@ import "github.com/minio/cli"
|
||||
//
|
||||
var configCmd = cli.Command{
|
||||
Name: "config",
|
||||
Usage: "Collection of config management commands.",
|
||||
Usage: "Manage ‘mc’ configuration.",
|
||||
Action: mainConfig,
|
||||
Subcommands: []cli.Command{
|
||||
configAliasCmd,
|
||||
|
||||
+2
-2
@@ -45,8 +45,8 @@ USAGE:
|
||||
mc {{.Name}} SOURCE TARGET [TARGET...]
|
||||
|
||||
EXAMPLES:
|
||||
1. Mirror a bucket recursively from Minio cloud storage to multiple buckets on Amazon S3 cloud storage.
|
||||
$ mc {{.Name}} https://play.minio.io:9000/photos/2014 https://s3.amazonaws.com/backup-photos https://s3-west-1.amazonaws.com/local-photos
|
||||
1. Mirror a bucket recursively from Minio cloud storage to a bucket on Amazon S3 cloud storage.
|
||||
$ mc {{.Name}} https://play.minio.io:9000/photos/2014 https://s3.amazonaws.com/backup-photos
|
||||
|
||||
2. Mirror a local folder recursively to Minio cloud storage and Amazon S3 cloud storage.
|
||||
$ mc {{.Name}} backup/ https://play.minio.io:9000/archive https://s3.amazonaws.com/archive
|
||||
|
||||
+1
-1
@@ -45,7 +45,7 @@ EXAMPLES:
|
||||
3. Stream MySQL database dump to Amazon S3 directly.
|
||||
$ mysqldump -u root -p ******* accountsdb | mc {{.Name}} https://s3.amazonaws.com/ferenginar/backups/accountsdb-oct-9-2015.sql
|
||||
|
||||
4. Contatinate a zip file to two object storage servers simultaneously.
|
||||
4. Stream a zip file to two object storage servers simultaneously.
|
||||
$ cat ~/myphotos.zip | mc {{.Name}} https://s3.amazonaws.com/mybucket/photos.zip https://minio.mystartup.io:9000/backup/photos.zip
|
||||
`,
|
||||
}
|
||||
|
||||
+3
-12
@@ -32,7 +32,7 @@ import (
|
||||
// remove a file or folder.
|
||||
var rmCmd = cli.Command{
|
||||
Name: "rm",
|
||||
Usage: "Remove file or bucket.",
|
||||
Usage: "Remove file or bucket [WARNING: Use with care].",
|
||||
Action: mainRm,
|
||||
CustomHelpTemplate: `NAME:
|
||||
mc {{.Name}} - {{.Usage}}
|
||||
@@ -53,19 +53,10 @@ EXAMPLES:
|
||||
3. Remove a bucket on Minio cloud storage
|
||||
$ mc {{.Name}} https://play.minio.io:9000/mongodb-backup
|
||||
|
||||
4. Remove a bucket on Cloud storage recursively
|
||||
$ mc {{.Name}} https://s3.amazonaws.com/jazz-songs/... force
|
||||
|
||||
5. Remove a file on local filesystem:
|
||||
$ mc {{.Name}} march/expenses.doc
|
||||
|
||||
6. Remove a file named "force" on local filesystem:
|
||||
$ mc {{.Name}} force
|
||||
|
||||
7. Remove incomplete upload of a file on Cloud storage:
|
||||
4. Remove incomplete upload of a file on Cloud storage:
|
||||
$ mc {{.Name}} https://s3.amazonaws.com/jazz-songs/louis/file01.mp3 incomplete
|
||||
|
||||
2. Remove incomplete uploads of folder recursively on Cloud storage
|
||||
5. Remove incomplete uploads of folder recursively on Cloud storage
|
||||
$ mc {{.Name}} https://s3.amazonaws.com/jazz-songs/louis/... incomplete force
|
||||
|
||||
`,
|
||||
|
||||
+1
-1
@@ -31,7 +31,7 @@ import (
|
||||
// Manage sessions for cp and mirror.
|
||||
var sessionCmd = cli.Command{
|
||||
Name: "session",
|
||||
Usage: "Manage sessions for cp and mirror.",
|
||||
Usage: "Manage saved sessions of cp and mirror operations.",
|
||||
Action: mainSession,
|
||||
CustomHelpTemplate: `NAME:
|
||||
mc {{.Name}} - {{.Usage}}
|
||||
|
||||
@@ -28,7 +28,7 @@ import (
|
||||
// Share documents via URL.
|
||||
var shareDownload = cli.Command{
|
||||
Name: "download",
|
||||
Usage: "Share documents via URL.",
|
||||
Usage: "Generate URL to download documents.",
|
||||
Action: mainShareDownload,
|
||||
CustomHelpTemplate: `NAME:
|
||||
mc share {{.Name}} - {{.Usage}}
|
||||
|
||||
+1
-1
@@ -32,7 +32,7 @@ import (
|
||||
// Share documents via URL.
|
||||
var shareCmd = cli.Command{
|
||||
Name: "share",
|
||||
Usage: "Share documents via URL.",
|
||||
Usage: "Download and upload documents.",
|
||||
Action: mainShare,
|
||||
Subcommands: []cli.Command{
|
||||
shareDownload,
|
||||
|
||||
@@ -28,7 +28,7 @@ import (
|
||||
// Share documents via URL.
|
||||
var shareUpload = cli.Command{
|
||||
Name: "upload",
|
||||
Usage: "Share link that can be used to upload files to private bucket",
|
||||
Usage: "Generate ‘curl’ command to upload files.",
|
||||
Action: mainShareUpload,
|
||||
CustomHelpTemplate: `NAME:
|
||||
mc share {{.Name}} - {{.Usage}}
|
||||
|
||||
Reference in New Issue
Block a user