mirror of
https://github.com/minio/mc.git
synced 2025-11-13 12:22:45 +03:00
minio client becomes modern copy
This commit is contained in:
2
NOTICE
2
NOTICE
@@ -1,4 +1,4 @@
|
||||
Minimalist Object Storage, (C) 2014,2015 Minio, Inc.
|
||||
Modern Copy, (C) 2014,2015 Minio, Inc.
|
||||
|
||||
This product includes software developed at Minio, Inc.
|
||||
(http://minio.io/).
|
||||
|
||||
21
README.md
21
README.md
@@ -1,10 +1,10 @@
|
||||
# Minio Client
|
||||
# Modern Copy
|
||||
|
||||
mc - Minio Client for S3 Compatible Object Storage released under [Apache license v2](./LICENSE).
|
||||
mc - Modern copy command for filesystems and object Storage. "mc" has features to resume partial downloads, progress bar, network reconnect and checksum verification. It is written in golang and released under [Apache license v2](./LICENSE).
|
||||
|
||||
[](http://godoc.org/github.com/minio-io/mc) [](https://travis-ci.org/minio-io/mc)
|
||||
|
||||
## Download & Install
|
||||
## Install from Source
|
||||
|
||||
```go
|
||||
# go get github.com/minio-io/mc
|
||||
@@ -18,18 +18,3 @@ mc - Minio Client for S3 Compatible Object Storage released under [Apache licens
|
||||
|
||||
[Contribute to mc](./CONTRIBUTING.md)
|
||||
|
||||
### Supported platforms
|
||||
|
||||
| Name | Supported |
|
||||
| ------------- | ------------- |
|
||||
| Linux | Yes |
|
||||
| Windows | Yes |
|
||||
| Mac OSX | Yes |
|
||||
|
||||
### Supported architectures
|
||||
|
||||
| Arch | Supported |
|
||||
| ------------- | ------------- |
|
||||
| x86-64 | Yes |
|
||||
| arm64 | Not yet|
|
||||
| i386 | Not yet |
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Minimalist Object Storage, (C) 2015 Minio, Inc.
|
||||
* Modern Copy, (C) 2015 Minio, Inc.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Minimalist Object Storage, (C) 2014, 2015 Minio, Inc.
|
||||
* Modern Copy, (C) 2014, 2015 Minio, Inc.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Minimalist Object Storage, (C) 2014,2015 Minio, Inc.
|
||||
* Modern Copy, (C) 2014,2015 Minio, Inc.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Minimalist Object Storage, (C) 2014,2015 Minio, Inc.
|
||||
* Modern Copy, (C) 2014,2015 Minio, Inc.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Minimalist Object Storage, (C) 2014,2015 Minio, Inc.
|
||||
* Modern Copy, (C) 2014,2015 Minio, Inc.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Minimalist Object Storage, (C) 2014,2015 Minio, Inc.
|
||||
* Modern Copy, (C) 2014,2015 Minio, Inc.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -23,14 +23,14 @@ import (
|
||||
// List of commands
|
||||
var (
|
||||
cpCmd = cli.Command{
|
||||
Name: "cp",
|
||||
Usage: "copy objects and files",
|
||||
Description: "Copy files and objects recursively between Amazon S3, Minio Object Storage and Filesystem",
|
||||
Action: doCopyCmd,
|
||||
Name: "cp",
|
||||
Usage: "Copy objects and files",
|
||||
// Description: "Copy files and objects recursively across object storage and filesystems",
|
||||
Action: doCopyCmd,
|
||||
Flags: []cli.Flag{
|
||||
cli.BoolFlag{
|
||||
Name: "recursive, r",
|
||||
Usage: "recursively crawls a given directory or bucket",
|
||||
Usage: "Recursively crawl a given directory or bucket",
|
||||
},
|
||||
},
|
||||
CustomHelpTemplate: `NAME:
|
||||
@@ -59,10 +59,10 @@ EXAMPLES:
|
||||
}
|
||||
|
||||
lsCmd = cli.Command{
|
||||
Name: "ls",
|
||||
Usage: "list files and objects",
|
||||
Description: `List files and objects recursively between Amazon S3, Minio Object Storage and Filesystem`,
|
||||
Action: doListCmd,
|
||||
Name: "ls",
|
||||
Usage: "List files and objects",
|
||||
// Description: `List files and objects recursively on object storage and fileystems`,
|
||||
Action: doListCmd,
|
||||
CustomHelpTemplate: `NAME:
|
||||
mc {{.Name}} - {{.Usage}}
|
||||
|
||||
@@ -91,10 +91,10 @@ EXAMPLES:
|
||||
}
|
||||
|
||||
mbCmd = cli.Command{
|
||||
Name: "mb",
|
||||
Usage: "makes a bucket",
|
||||
Description: `Creates a bucket on Amazon S3, Minio Object Storage and Filesystem`,
|
||||
Action: doMakeBucketCmd,
|
||||
Name: "mb",
|
||||
Usage: "Make a bucket",
|
||||
// Description: `Create a bucket on object storage or a folder on filesystem`,
|
||||
Action: doMakeBucketCmd,
|
||||
CustomHelpTemplate: `NAME:
|
||||
mc {{.Name}} - {{.Usage}}
|
||||
|
||||
@@ -121,10 +121,10 @@ EXAMPLES:
|
||||
configCmd = cli.Command{
|
||||
Name: "config",
|
||||
Usage: "Generate configuration \"" + mustGetMcConfigPath() + "\" file.",
|
||||
Description: `Configure minio client configuration.
|
||||
|
||||
NOTE: that the configure command only writes values to the config file.
|
||||
It does not use any configuration values from the environment variables.`,
|
||||
// Description: Configure minio client configuration.
|
||||
//
|
||||
// NOTE: that the configure command only writes values to the config file.
|
||||
// It does not use any configuration values from the environment variables.`,
|
||||
Action: doConfigCmd,
|
||||
Flags: []cli.Flag{
|
||||
cli.StringFlag{
|
||||
@@ -150,13 +150,13 @@ EXAMPLES:
|
||||
}
|
||||
updateCmd = cli.Command{
|
||||
Name: "update",
|
||||
Usage: "Check if new updates are available at http://minio.io",
|
||||
Usage: "Check for new software updates",
|
||||
Description: "",
|
||||
Action: doUpdateCmd,
|
||||
Flags: []cli.Flag{
|
||||
cli.BoolFlag{
|
||||
Name: "yes, y",
|
||||
Usage: "download and update local binary",
|
||||
Usage: "Download and update local binary",
|
||||
},
|
||||
},
|
||||
}
|
||||
@@ -174,11 +174,11 @@ var (
|
||||
flags = []cli.Flag{
|
||||
cli.BoolFlag{
|
||||
Name: "debug",
|
||||
Usage: "enable HTTP tracing",
|
||||
Usage: "Enable HTTP tracing",
|
||||
},
|
||||
cli.BoolFlag{
|
||||
Name: "quiet, q",
|
||||
Usage: "disable chatty output, such as the progress bar",
|
||||
Usage: "Disable chatty output, such as the progress bar",
|
||||
},
|
||||
}
|
||||
)
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Minimalist Object Storage, (C) 2015 Minio, Inc.
|
||||
* Modern Copy, (C) 2015 Minio, Inc.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
|
||||
2
doc.go
2
doc.go
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Minimalist Object Storage, (C) 2014,2015 Minio, Inc.
|
||||
* Modern Copy, (C) 2014,2015 Minio, Inc.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Minimalist Object Storage, (C) 2014,2015 Minio, Inc.
|
||||
* Modern Copy, (C) 2014,2015 Minio, Inc.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Minimalist Object Storage, (C) 2015 Minio, Inc.
|
||||
* Modern Copy, (C) 2015 Minio, Inc.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
|
||||
4
main.go
4
main.go
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Minimalist Object Storage, (C) 2014, 2015 Minio, Inc.
|
||||
* Modern Copy, (C) 2014, 2015 Minio, Inc.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -87,7 +87,7 @@ func getSystemData() map[string]string {
|
||||
|
||||
func main() {
|
||||
app := cli.NewApp()
|
||||
app.Usage = "Minio Client for S3 Compatible Object Storage"
|
||||
app.Usage = "Modern Copy for object storage and filesystems"
|
||||
app.Version = mcGitCommitHash
|
||||
app.Commands = options
|
||||
app.Flags = flags
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Minimalist Object Storage, (C) 2015 Minio, Inc.
|
||||
* Modern Copy, (C) 2015 Minio, Inc.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Minimalist Object Storage, (C) 2015 Minio, Inc.
|
||||
* Modern Copy, (C) 2015 Minio, Inc.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this fs except in compliance with the License.
|
||||
|
||||
@@ -21,7 +21,7 @@ limitations under the License.
|
||||
// ---------------------------------------- //
|
||||
|
||||
/*
|
||||
* Minimalist Object Storage, (C) 2015 Minio, Inc.
|
||||
* Modern Copy, (C) 2015 Minio, Inc.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
|
||||
@@ -21,7 +21,7 @@ limitations under the License.
|
||||
// ---------------------------------------- //
|
||||
|
||||
/*
|
||||
* Minimalist Object Storage, (C) 2015 Minio, Inc.
|
||||
* Modern Copy, (C) 2015 Minio, Inc.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
|
||||
@@ -21,7 +21,7 @@ limitations under the License.
|
||||
// ---------------------------------------- //
|
||||
|
||||
/*
|
||||
* Minimalist Object Storage, (C) 2015 Minio, Inc.
|
||||
* Modern Copy, (C) 2015 Minio, Inc.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
|
||||
@@ -21,7 +21,7 @@ limitations under the License.
|
||||
// ---------------------------------------- //
|
||||
|
||||
/*
|
||||
* Minimalist Object Storage, (C) 2015 Minio, Inc.
|
||||
* Modern Copy, (C) 2015 Minio, Inc.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
|
||||
@@ -21,7 +21,7 @@ limitations under the License.
|
||||
// ---------------------------------------- //
|
||||
|
||||
/*
|
||||
* Minimalist Object Storage, (C) 2015 Minio, Inc.
|
||||
* Modern Copy, (C) 2015 Minio, Inc.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Minimalist Object Storage, (C) 2015 Minio, Inc.
|
||||
* Modern Copy, (C) 2015 Minio, Inc.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Minimalist Object Storage, (C) 2015 Minio, Inc.
|
||||
* Modern Copy, (C) 2015 Minio, Inc.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Minimalist Object Storage, (C) 2015 Minio, Inc.
|
||||
* Modern Copy, (C) 2015 Minio, Inc.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
|
||||
@@ -21,7 +21,7 @@ limitations under the License.
|
||||
// ---------------------------------------- //
|
||||
|
||||
/*
|
||||
* Minimalist Object Storage, (C) 2015 Minio, Inc.
|
||||
* Modern Copy, (C) 2015 Minio, Inc.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Minimalist Object Storage, (C) 2015 Minio, Inc.
|
||||
* Modern Copy, (C) 2015 Minio, Inc.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Minimalist Object Storage, (C) 2014,2015 Minio, Inc.
|
||||
* Modern Copy, (C) 2014,2015 Minio, Inc.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Minimalist Object Storage, (C) 2015 Minio, Inc.
|
||||
* Modern Copy, (C) 2015 Minio, Inc.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Minimalist Object Storage, (C) 2015 Minio, Inc.
|
||||
* Modern Copy, (C) 2015 Minio, Inc.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Minimalist Object Storage, (C) 2015 Minio, Inc.
|
||||
* Modern Copy, (C) 2015 Minio, Inc.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
/*
|
||||
* qdb - Quick way to implement a configuration file
|
||||
*
|
||||
* Minimalist Object Storage, (C) 2015 Minio, Inc.
|
||||
* Modern Copy, (C) 2015 Minio, Inc.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
/*
|
||||
* QConfig - Quick way to implement a configuration file
|
||||
*
|
||||
* Minimalist Object Storage, (C) 2015 Minio, Inc.
|
||||
* Modern Copy, (C) 2015 Minio, Inc.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Minimalist Object Storage, (C) 2014, 2015 Minio, Inc.
|
||||
* Modern Copy, (C) 2014, 2015 Minio, Inc.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
|
||||
Reference in New Issue
Block a user