1
0
mirror of https://github.com/minio/mc.git synced 2025-11-13 12:22:45 +03:00
Commit Graph

70 Commits

Author SHA1 Message Date
Praveen raj Mani
30965763d6 Support setting of custom policies from a JSON file (#2649)
Fixes #2633
2019-01-28 13:30:31 -08:00
Harshavardhana
ede0911de2 Support parquet select implementation (#2643) 2019-01-22 11:13:58 -08:00
Harshavardhana
d8d3a3dec1 Remove incorrect OutputSerialization 2019-01-07 03:08:41 -08:00
Harshavardhana
59ef9fe468 Support SSE without keys (#2626) 2019-01-04 11:56:43 -08:00
Anis Elleuch
124b9fa4d9 Avoid remove freeze when server returns an error (#2631)
Minio can return during deletion sometimes, like missing quorum,
but mc can block in that case. The reason is that Remove() in
client-s3 doesn't actively listen for errors reported by minio-go
RemoveObjects() API  because that would also block this latter.
2018-12-27 17:38:17 -08:00
Harshavardhana
2073642656 Allow copying file onto itself (#2617)
This allows encrypting an unencrypted file
using server side CopyObject API.
2018-12-06 10:18:16 -08:00
Kale Blankenship
8137e79d0c Close readers returned by Client.Get (#2595)
Change Client.Get to return an io.ReadCloser instead of io.Reader
so that it can be closed.
2018-11-08 17:02:14 -08:00
Praveen raj Mani
449cad0eb8 Migrate from "mime" to "github.com/minio/minio/pkg/mimedb" (#2563)
The content-type resolutions are standardized across platforms.

Fixes #2559
2018-10-02 17:17:44 -07:00
Harshavardhana
a83ffe321c Implement select command (#2538) 2018-09-30 23:18:33 -07:00
Harshavardhana
12627c35e4 Fix parallel upload performance issues (#2521)
Tested by transferring 29GiB data, around 246569 files
over 100Gig network.

- master branch
```
time mc mirror /root myminio/testbucket/
real	2m10s
```

- after changes
```
time mc mirror /root myminio/testbucket/
real	1m2s
```

By default runtime.NumCPU() workers are started.
2018-08-30 22:31:08 +05:30
Harshavardhana
7f01db2cda create bucket automatically when prefix is created (#2488) 2018-07-27 15:29:53 -07:00
Harshavardhana
4ab7f30f99 Handle directories properly in cp and mirror (#2478)
Fixes #2477
2018-06-29 16:56:02 -07:00
Harshavardhana
29f2dbca6b Fix 'mc mb' to guide the user when bucket is not passed (#2476)
Additionally this PR also allows for creating
prefixes on S3 compatible object storage backends
in the following form

```
mc mb s3/harshavardhana/object/prefix/
```
2018-06-29 14:56:07 -07:00
Harshavardhana
afcfe758f3 Fix joinPath function to handle directories properly (#2459) 2018-06-06 11:29:05 +05:30
Anis Elleuch
c0b89a7aec Add support of empty directories in ls/rm/find commands (#2452) 2018-06-04 17:20:07 -07:00
Harshavardhana
75e9691616 Support server side copy object with progress (#2438)
Support server side copy object with progress
and also uses a more optimized version to perform
multipart server side copy operation.
2018-04-26 11:02:06 +05:30
poornas
fe82b0381c change encryption key parsing to allow spaces in sse-c key (#2408)
Also vendoring in minio-go updates
2018-03-14 02:47:14 -07:00
poornas
0ede95b65e add encrypt option to cp, mirror,pipe,stat, cat and rm commands (#2400) 2018-03-08 17:18:41 +05:30
Nitish Tiwari
ea580b0b65 Add storage-class support (#2403)
This PR adds storage-class support for mc cp and mirror command.
Storage class values are passed via the -storage-class or
--sc flag.

Fixes #1859
2018-03-03 10:28:53 -08:00
kannappanr
b1dd99c94d Detect duplicate config entry in mc add event (#2402)
Fixes #2324
2018-02-26 14:28:33 -08:00
kannappanr
57bf0c0e79 Fix moving standard metadata as user defined header in s3Client's PUT method (#2401)
Standard headers like Content-Disposition, Content-Encoding,
Cache-Control, Content-Language were made part of user metadata
causing it to fail while mirroring, if the source has these headers
set.

Fixes #2358
2018-02-24 15:12:01 -08:00
poornas
65e22bee24 Add api as option for mc config host add command. (#2381) 2018-02-10 14:39:12 -08:00
poornas
5d703df69d vendorize minio-go to version 4.0.6 (#2357) 2018-01-16 12:43:49 +05:30
poornas
5dee56d5d0 fix for prefix based rm (#2354)
mc rm --r with prefix not terminated by / doesn't get deleted.
example: mc rm --r --force --older-than=10 play/test/prefix

Fixes: #2341
2018-01-12 09:23:03 +05:30
poornas
275db95170 mc: Remove MC_MULTIPART_THREADS env variable (#2326)
Remove this var as PR#2289 will manage threads automatically based on
workload to speed up mc cp/mirror operations.
2017-12-06 09:30:20 -08:00
poornas
1e7b4c9e4a Add mc rm support to recursively remove site (#2265)
This requires --dangerous flag in addition to --recursive and --force

Change namespace identification check to be more robust to user
input errors like mc rm --r --force play//
2017-12-01 18:25:08 -08:00
poornas
ab6b2a83ac Add new stat sub command (#2275) 2017-10-31 13:56:40 -07:00
Harshavardhana
aa8d5ed0cc Add newS3Config helper to auto-probe signature type. (#2292) 2017-10-20 13:51:56 -07:00
poornas
a86080a0b7 Add context in Put api call for cp/mirror. (#2291) 2017-10-20 13:50:35 -07:00
poornas
26c7c3e500 ls: show ETag in json formatted output (#2285) 2017-10-13 18:23:13 -07:00
poornas
224e602e59 Allow multipart threads to be configured via environment variable (#2254) 2017-10-02 19:45:08 -07:00
Harshavardhana
fe583468ce Vendorize new changes from minio-go (#2246)
This PR brings in changes for

- PutObjectStream with no content-length is heavily
  optimized so `mc pipe` will not run out of memory
  for large uploads.
- Fixes a bug in Signature v2 for HTTP requests.
- Support us-gov-west-1 region as well.
- Auto region handling is inside minio-go now.
2017-09-03 13:56:22 -07:00
Aditya Manthramurthy
ca96cfc6e6 Move pkg/probe from vendor dir to package dir (#2236)
The probe package is no longer available in the Minio server
repo. This change just moves probe from the vendor directory to its
own dir under `pkg`.

This is a maintenance fix.
2017-08-14 11:13:38 -07:00
poornas
e53ad24e8c Set region for mc from s3 endpoint when its available (#2234) 2017-08-04 14:26:37 -07:00
A. Elleuch
eba548ca88 Add DisableCompression to override auto-decompress (#2216)
Fixes https://github.com/minio/mc/issues/2209
2017-07-20 11:32:23 -07:00
Harshavardhana
5c135d25d6 mc: Vendorize minio-go this brings in streaming support. (#2203)
This PR brings following changes

- Brings streaming support for mc uploads.
- Brings support for copying objects upto 5TiB
  as a consequence of ComposeObject implementation
  in minio-go.
2017-07-06 20:41:34 +01:00
A. Elleuch
1b9beadf2b cat: Ignore Stat() error and pass to Get() (#2166)
* client: Avoid returning metadata with Get()

client-s3.Get() calls Stat() method because Get() is supposed to return
object metadata. This PR makes a change in client interface so metadata
is returned in Stat() method. This is beneficial for us to avoid calling
HEAD method in S3 when run `mc cat`

* cat: Ignore Stat() returned error

In case of cache gateway, HEAD objects returns 404 even though
objects are gettable. This PR ignores Stat() error since its
purpose in case of cat is to check if the download object size
is equal to what the server announced.
2017-07-04 08:13:57 -07:00
Harshavardhana
1a8561115b Allow minio-go to validate bucket names. (#2183)
Related change in minio-go https://github.com/minio/minio-go/pull/708

Fixes minio/mc#2157
2017-06-21 21:12:10 +01:00
Harshavardhana
be3370396a Remove client instance being sent back in eventInfo() (#2167) 2017-06-05 07:44:22 -07:00
Harshavardhana
7f65ad4957 Add UTCNow() helper function (#2155)
This patch adds UTCNow() function which returns current UTC time.

This is equivalent of UTCNow() == time.Now().UTC()

Refer https://github.com/minio/minio/pull/3931
2017-05-16 18:50:54 +02:00
Anis Elleuch
372e905dad s3: Enforce virtual host style with China endpoint (#2153) 2017-05-11 09:19:12 -07:00
Anis Elleuch
e54962e17f mb: Add -p flag to ignore existing bucket/dir (#2143)
If a remote directory/bucket exists, -p will still make mb cmd
happy if the target already exists.
2017-04-28 13:13:44 -07:00
Scott McClellan
dd9e715599 Improved Error Msg For Bucket Names that Contain non-LOWERCASE chars (#2134) (#2135) 2017-04-22 22:15:27 +01:00
Harshavardhana
9ea42680b0 watch/events: Add eventInfo struct for brevity. (#2120) 2017-04-11 09:08:04 -07:00
Harshavardhana
b0968e29e8 watch/events: Support events on Get/Head operations as well. (#2116)
Fixes #2073
2017-04-10 11:50:52 -07:00
Anis Elleuch
43388a06ca client-s3: Recursive List() avoids listing buckets (#2014)
This fixes bug in `mc mirror myminio/ /tmp/dir` since objectDifference() can only
take care of mirroring objects.
2017-02-13 13:47:49 -08:00
Harshavardhana
cca8c10f33 mirror: For non-s3 make sure we copy and exit properly. (#1995) 2017-02-03 15:55:44 -08:00
Harshavardhana
76180184a5 client: S3 and Admin clients should have TLSConfig. (#1977)
TLSConfig should be allocated regardless of the
URL scheme so that the re-direction works properly.

Without this change if a server is configured with
self signed certs redirection would fail with

```
x509: certificate signed by unknown authority
```

Allocate TLSConfig always with default values.
2017-01-23 14:38:56 -08:00
Anis Elleuch
7cec8f2285 Add admin lock command (#1942) 2017-01-06 01:29:49 -08:00
Harshavardhana
853fea16b4 Enable support for s3 transfer acceleration. (#1946)
Simply use

```
mc config host add s3-accel https://s3-accelerate.amazonaws.com <access_id> <secret_id>
```

This is all is needed, if you have buckets which has s3 acceleration
enabled it just works transparently.

Fixes #1912
2017-01-05 01:36:01 -08:00