Commit Graph
218 Commits
Author SHA1 Message Date
Harshavardhana 13259eea21 mirror with --watch should copy and exit for s3 endpoints (#2345)
Current code wouldn't exit unless we press CTRL+C
even if the endpoints do not support --watch, this PR
fixes this behavior.
2018-01-08 10:56:56 -08:00
poornas 9da492975c correct stat behavior and message (#2344)
fix empty stat listing when bucket has only a single object and
cleanup dead code.
2018-01-05 14:18:35 -08:00
Landry Breuil 96dc4f920d Use client-fs_other on OpenBSD (#2342) 2017-12-29 14:14:24 +05:30
poornas 2d221ba8da stat: fix output to show bucket in stat listing (#2340)
Show stat of all buckets at site level, and mimic
mc ls behavior in stat output.
2017-12-25 16:19:24 +05:30
Kaan Kabalak eeb18ff75c Correct typo in mc cat (#2336)
Fixes #2334
2017-12-15 21:45:24 +05:30
A. Elleuch 4cb6e35342 fix: Consider insecure flag in host add cmd (#2331)
--insecure wasn't have an effect when invoked in a `mc host add` cmd. This
PR fixes the behavior.
2017-12-11 15:14:56 -08:00
A. Elleuch 5ddf9728f8 Parallelize upload/remove in cp/mirror commands (#2289)
This PR removes --parallel flag and implements a dynamic way of adding
threads to accelerate mirror/cp command.

After the calculation of objects that need to be copied/removed, mc
sends tasks (upload/remove) to a parallel manager which monitors the
progress of tasks and decide to allocate more threads to it to
accelerate the overall work.

This is very useful when we copy/mirror many relatively small files.
2017-12-07 16:20:34 -08:00
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 399187c4fb ui: consistenly use "flag" instead of "option" in error messages (#2325) 2017-12-06 16:00:10 +05:30
kannappanr 1fd03fb81f Rearrange exclude code to filter source and target URLs (#2322)
Move exclude code handler to mirror-url and mirror-main

Fixes #2319
2017-12-04 15:47:29 -08:00
Harshavardhana 0aa704ad5e Fix typo in find help (#2323) 2017-12-04 23:10:09 +05:30
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
Harshavardhana 65c582cd5b Fixing find help message and behavior (#2320) 2017-12-01 18:04:09 -08:00
Harshavardhana dfffc1e7cc mirror: Deprecate --force instead add --overwrite (#2318)
Fixes #2317
2017-11-30 16:51:17 +05:30
poornas a63a1f7eca Skip color theme for quiet mode (#2313) 2017-11-23 16:35:43 +05:30
poornas b3fe40e113 fix: append XAttr to metadata only if metadata requested (#2310) 2017-11-23 16:35:17 +05:30
Harshavardhana ceb38130fc Fix ENV handling in mc (#2282)
Now ENV supports following style and doesn't require
a pre-requisite to have an entry in `config.json`

MC_HOSTS_myminio=http://minio:minio123@localhost:9000/

Notice signature style is auto-probed if env is set.
2017-11-13 16:29:10 -08:00
Harshavardhana 7498e97182 Relax access key, secret key validation (#2300)
Comply with minio server behavior - fixes #2298
2017-11-13 12:53:11 -08:00
poornas 32a8f34f7d Fix: mc rm to error when nonempty directory is deleted (#2303)
Example: when mc rm play/testbucket/folder1 is attempted and directory
is nonempty, exit with an error message
2017-11-09 18:28:53 -08:00
poornas ab6b2a83ac Add new stat sub command (#2275) 2017-10-31 13:56:40 -07:00
Harshavardhana c9448749d0 Fix command line docs and update complete-guide (#2290)
Also re-ordered snap below binary download for windows in priority.w
2017-10-21 07:59:12 +05:30
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
Harshavardhana 785e14a725 Add find command in docs, remove deprecated files and entries. (#2286) 2017-10-13 17:28:29 -07:00
Harshavardhana 7ad9a36b9d Add find basic functional test (#2284) 2017-10-13 13:51:12 +05:30
kannappanr 9831612507 Add exclude option to mirror command (#2269)
Added exclude options to exclude unwanted system files.
Exclude option excludes the source files/objects that match
the passed shell file name pattern

Fixes #1903
2017-10-12 14:52:21 -07:00
Krishnan Parthasarathi 207d5cfb61 Bucket events times are in RFC3339 format (#2278) 2017-10-12 11:26:22 -07:00
Harshavardhana c10b429dcb Refactor and fix find bugs (#2273)
- Watch now avoids an unnecessary waitgroup and simplifies overall flow.
- Watch now honors maxDepth parameter as well.
- Parsing logic is fully outside in the mainFind() function.
- Enhance and fix behavior of nameMatch to comply with unix
  find behavior.
- Enhance and fix behavior of maxdepth to comply with unix
  find behavior.

Fixes #2272
2017-10-09 19:44:58 -07:00
A. Elleuch 8f38471e29 fix: Correct some cp/mirror help indentations (#2268) 2017-10-06 09:35:44 -07:00
Harshavardhana 25254c7622 refactor find command to be simpler (#2264) 2017-10-05 15:29:54 -07:00
A. Elleuch 7d062fb08c cat: Print ^? for unprintable characters (#2217)
In terminals, cat avoids directly printing some binary characters, such
as control characters or non printable characters but prints ^? instead,
that way, cat will avoid corrupting terminals
2017-10-04 16:49:35 -07:00
Harshavardhana 37e5a78779 Fix and honor --json flag for find command. (#2263)
Currently `mc find` didn't honor `--json` flag properly,
this PR addresses that.

Additionally also take care of `List` returning errors
and handle them appropriately.

Fixes #2252
2017-10-03 16:49:36 -07:00
poornas 224e602e59 Allow multipart threads to be configured via environment variable (#2254) 2017-10-02 19:45:08 -07:00
chibiegg 5a2798dddb Support copy in parallel (#2258) 2017-09-29 14:36:16 -07:00
Nitish Tiwari 36d7d0b9a7 Update quiet flag usage to indicate it only turns off progress bar (#2257)
Fixes https://github.com/minio/mc/issues/2240
2017-09-26 10:17:17 -07:00
Carter McClellan 39197ea3ae Fix parsing error with mc find --older, and --newer (#2249) 2017-09-08 10:40:32 -07:00
Harshavardhana 48bd32570f Fix find help text formatting. (#2247) 2017-09-07 11:11:08 -07:00
Carter McClellan 49ef42d36a Implement mc find (#2201) 2017-09-05 15:44:10 -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
Aaron Walker dd3b659f9e session: Reimplement using sub-commands (#2225) 2017-08-17 10:55:32 -07:00
Krishnan Parthasarathi e6ca983442 Fix credentials argument parsing (#2238) 2017-08-15 10:37:50 -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
Harshavardhana 60681d7fb6 config: Provide meaningful errors for invalid URL and Alias. (#2233)
Fixes #2232
2017-08-06 11:35:01 -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 b62fa406d8 share: Presign objects under a dir prefix (#2215)
From now on, when the user specifies to share a prefix which represents
a directory, all objects under that directory will be shared without
having to check for --recursive flag. If the latter is specified, all
objects in all subdirs will be shared.
2017-07-31 11:39:19 -07:00
poornas d066ff71f5 diff: reword help message (#2222) 2017-07-30 08:46:39 -07:00
Carter McClellan c1b9079b73 Improved experimental log of mc admin heal to only appear on heal specific mc commands (#2230) 2017-07-30 08:43:42 -07:00
Dee Koder b9401d574f Correct typos in mc admin heal warning message. (#2219) 2017-07-27 14:32:19 -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