From 08c90a2c036db832bf97b13f4e89635e3c904891 Mon Sep 17 00:00:00 2001 From: Harshavardhana Date: Mon, 9 Nov 2015 23:46:42 -0800 Subject: [PATCH] doc: Add google cloud storage --- access-main.go | 3 +++ config-alias-main.go | 11 +++++++---- config-host-main.go | 2 +- ls-main.go | 5 +++-- mb-main.go | 5 ++++- mirror-main.go | 4 ++-- pig-main.go | 7 ++++--- 7 files changed, 24 insertions(+), 13 deletions(-) diff --git a/access-main.go b/access-main.go index e79838c0..9c2598e9 100644 --- a/access-main.go +++ b/access-main.go @@ -56,6 +56,9 @@ EXAMPLES: 4. Get bucket permissions. $ mc {{.Name}} get https://s3.amazonaws.com/shared + + 5. Get bucket permissions. + $ mc {{.Name}} get https://storage.googleapis.com/miniocloud `, } diff --git a/config-alias-main.go b/config-alias-main.go index 73fe4368..68efadc0 100644 --- a/config-alias-main.go +++ b/config-alias-main.go @@ -42,15 +42,18 @@ USAGE: OPERATION = add | list | remove EXAMPLES: - 1. Add aliases for a URL + 1. Add aliases for Amazon S3. $ mc config {{.Name}} add mcloud https://s3.amazonaws.com/miniocloud $ mc ls mcloud - $ mc cp /bin/true mcloud/true - 2. List all aliased URLs. + 2. Add aliases for Google Cloud Storage. + $ mc config {{.Name}} add gcscloud https://storage.googleapis.com/miniocloud + $ mc ls gcscloud + + 3. List all aliased URLs. $ mc config {{.Name}} list - 3. Remove an alias + 4. Remove an alias $ mc config {{.Name}} remove zek `, diff --git a/config-host-main.go b/config-host-main.go index 8309cb7a..0fc7c69e 100644 --- a/config-host-main.go +++ b/config-host-main.go @@ -33,7 +33,7 @@ EXAMPLES: 2. Add host configuration for a URL, using s3 api v2. For security reasons turn off bash history $ set +o history - $ mc config {{.Name}} add s3.amazonaws.com BKIKJAA5BMMU2RHO6IBB V7f1CwQqAcwo80UEIJEjc5gVQUSSx5ohQ9GSrr12 S3v2 + $ mc config {{.Name}} add storage.googleapis.com BKIKJAA5BMMU2RHO6IBB V7f1CwQqAcwo80UEIJEjc5gVQUSSx5ohQ9GSrr12 S3v2 $ set -o history 3. List all hosts. diff --git a/ls-main.go b/ls-main.go index 092238ea..69ccbb29 100644 --- a/ls-main.go +++ b/ls-main.go @@ -44,9 +44,10 @@ EXAMPLES: [2015-01-15 00:05:40 PST] 0B zek/ 2. List buckets from Amazon S3 cloud storage and recursively list objects from Minio cloud storage. - $ mc {{.Name}} https://s3.amazonaws.com/ https://play.minio.io:9000/backup/... + $ mc {{.Name}} https://s3.amazonaws.com/ https://play.minio.io:9000/backup/... https://storage.googleapis.com 2015-01-15 00:05:40 PST 0B zek/ - 2015-03-31 14:46:33 PDT 55MiB 2006-Mar-1/backup.tar.gz + 2015-03-31 14:46:33 PDT 55MiB backup.tar.gz + 2015-04-15 20:11:22 PST 0B miniocloud 3. List files recursively on local filesystem on Windows. $ mc {{.Name}} C:\Users\Worf\... diff --git a/mb-main.go b/mb-main.go index 0bfdc8df..8f6a7493 100644 --- a/mb-main.go +++ b/mb-main.go @@ -41,11 +41,14 @@ EXAMPLES: 1. Create a bucket on Amazon S3 cloud storage. $ mc {{.Name}} https://s3.amazonaws.com/public-document-store - 3. Make a folder on local filesystem with space characters + 2. Make a folder on local filesystem with space characters $ mc {{.Name}} 'My Documents' 3. Create a bucket on Minio cloud storage. $ mc {{.Name}} https://play.minio.io:9000/mongodb-backup + + 4. Create a bucket on Google Cloud Storage. + $ mc {{.Name}} https://storage.googleapis.com/miniocloud `, } diff --git a/mirror-main.go b/mirror-main.go index 156ecf9e..3f48fb44 100644 --- a/mirror-main.go +++ b/mirror-main.go @@ -48,8 +48,8 @@ EXAMPLES: 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 + 2. Mirror a local folder recursively to Minio cloud storage, Amazon S3 cloud storage and Google Cloud Storage. + $ mc {{.Name}} backup/ https://play.minio.io:9000/archive https://s3.amazonaws.com/archive https://storage.googleapis.com/miniocloud 3. Mirror a bucket from aliased Amazon S3 cloud storage to multiple folders on Windows. $ mc {{.Name}} s3/documents/2014/ C:\backup\2014 C:\shared\volume\backup\2014 diff --git a/pig-main.go b/pig-main.go index 98792b20..927fbc21 100644 --- a/pig-main.go +++ b/pig-main.go @@ -39,14 +39,15 @@ EXAMPLES: 1. Write contents of stdin to an object on Amazon S3 cloud storage. $ mc {{.Name}} https://s3.amazonaws.com/personalbuck/meeting-notes.txt - 2. Concatinate part files to an object on Amazon S3 cloud storage. - $ cat part1.img part2.img | mc {{.Name}} https://s3.amazonaws.com/ferenginar/gnuos.iso + 2. Concatinate part files to an object on Amazon S3 cloud storage and Google Cloud Storage. + $ cat part1.img part2.img | mc {{.Name}} https://s3.amazonaws.com/ferenginar/gnuos.iso https://storage.googleapis.com/miniocloud/gnuos.iso 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. 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 + $ cat ~/myphotos.zip | mc {{.Name}} https://s3.amazonaws.com/mybucket/photos.zip https://minio.mystartup.io:9000/backup/photos.zip + `, }