diff --git a/cp-main.go b/cp-main.go index 7e178dc4..44b60951 100644 --- a/cp-main.go +++ b/cp-main.go @@ -199,14 +199,14 @@ func doCopyCmdSession(session *sessionV2) { isCopied := isCopiedFactory(session.Header.LastCopied) wg := new(sync.WaitGroup) - // Limit numner of cast routines based on available CPU resources. + // Limit number of copy routines based on available CPU resources. cpQueue := make(chan bool, int(math.Max(float64(runtime.NumCPU())-1, 1))) defer close(cpQueue) - // Status channel for receiveing cast return status. + // Status channel for receiveing copy return status. statusCh := make(chan copyURLs) - // Go routine to monitor doCast status and signal traps. + // Go routine to monitor doCopy status and signal traps. wg.Add(1) go func() { defer wg.Done() @@ -231,7 +231,7 @@ func doCopyCmdSession(session *sessionV2) { } }() - // Go routine to perform concurrently casting. + // Go routine to perform concurrently copying. wg.Add(1) go func() { defer wg.Done() @@ -244,13 +244,13 @@ func doCopyCmdSession(session *sessionV2) { if isCopied(cpURLs.SourceContent.Name) { doCopyFake(cpURLs, &bar) } else { - // Wait for other cast routines to + // Wait for other copy routines to // complete. We only have limited CPU // and network resources. cpQueue <- true - // Account for each cast routines we start. + // Account for each copy routines we start. copyWg.Add(1) - // Do casting in background concurrently. + // Do copying in background concurrently. go doCopy(cpURLs, &bar, cpQueue, copyWg, statusCh) } } diff --git a/docs/mirror.md b/docs/mirror.md index 8325d1ce..addcb450 100644 --- a/docs/mirror.md +++ b/docs/mirror.md @@ -2,25 +2,25 @@ ```go NAME: - mc mirror - Copy files and folders from a single source to many destinations + mc mirror - Mirror files and folders from a single source to many destinations USAGE: mc mirror SOURCE TARGET [TARGET...] EXAMPLES: - 1. Cast an object from local filesystem to Amazon S3 cloud storage. + 1. Mirror an object from local filesystem to Amazon S3 cloud storage. $ mc mirror star-trek-episode-10-season4.ogg https://s3.amazonaws.com/trekarchive - 2. Cast a bucket recursively from Minio cloud storage to multiple buckets on Amazon S3 cloud storage. + 2. Mirror a bucket recursively from Minio cloud storage to multiple buckets on Amazon S3 cloud storage. $ mc mirror https://play.minio.io:9000/photos/2014... https://s3.amazonaws.com/backup-photos https://s3.amazonaws.com/my-photos - 3. Cast a local folder recursively to Minio cloud storage and Amazon S3 cloud storage. + 3. Mirror a local folder recursively to Minio cloud storage and Amazon S3 cloud storage. $ mc mirror backup/... https://play.minio.io:9000/archive https://s3.amazonaws.com/archive - 4. Cast a bucket from aliased Amazon S3 cloud storage to multiple folders on Windows. + 4. Mirror a bucket from aliased Amazon S3 cloud storage to multiple folders on Windows. $ mc mirror s3:documents/2014/... C:\backup\2014 C:\shared\volume\backup\2014 - 5. Cast a local file of non english character to Amazon s3 cloud storage. + 5. Mirror a local file of non english character to Amazon s3 cloud storage. $ mc mirror 本語/... s3:mylocaldocuments C:\backup\2014 play:backup ``` diff --git a/mirror-main.go b/mirror-main.go index 8e45a532..baf241ce 100644 --- a/mirror-main.go +++ b/mirror-main.go @@ -34,7 +34,7 @@ import ( // Help message. var mirrorCmd = cli.Command{ Name: "mirror", - Usage: "Copy files and folders from a single source to many destinations", + Usage: "Mirror files and folders from a single source to many destinations", Action: runMirrorCmd, CustomHelpTemplate: `NAME: mc {{.Name}} - {{.Usage}}