1
0
mirror of https://github.com/minio/mc.git synced 2025-09-17 18:42:12 +03:00

93 Commits

Author SHA1 Message Date
jiuker
0ba848a99e fix: use tags package instead of s3utils (#5146) 2025-02-20 00:54:15 -08:00
jiuker
147e8f5b3b feat: add tags copy for mirror (#5137) 2025-02-13 02:39:59 -08:00
Klaus Post
be874766a7 Add --checksum param to pipe, put, cp, mirror (#5043)
Add checksums to pipe, cp, mirror commands.

> Add checksum to uploaded object. Values: MD5, CRC32, CRC32C, SHA1 or SHA256. Requires server trailing headers support like AWS, MinIO and possibly others.

`--md5` is hidden, but still applied.

Uploads to buckets with object locking will still use MD5.

Bonus: `mc stat` shows checksum information.
2024-09-24 08:25:16 -07:00
Harshavardhana
a289dae750 fix: support 'mc put --if-not-exists' (#4963)
Also allow 'mc get --version-id'
2024-06-18 14:15:26 -07:00
Aditya Manthramurthy
d4b7b00d73 Bump up minio/pkg to v3 (#4940) 2024-05-23 00:59:47 -07:00
Sveinn
fe58afcd39 Large MC Update (new encryption flags, functional test suite, removal of session code, minor cleanup, vuln. updates ) (#4882) 2024-04-15 08:10:25 -07:00
Harshavardhana
1ec55a5178 avoid stat and listing with --purge (#4869) 2024-03-08 22:43:06 -08:00
Harshavardhana
98af07b69c bring back the original progress bar (#4866)
also cleanup 'mc put/get' behavior
2024-03-02 16:13:08 -08:00
jiuker
5ff2208a2d add mc get (#4847) 2024-02-21 18:34:48 -08:00
jiuker
1e69c2aadd feat: add put action (#4839) 2024-02-19 22:36:31 -08:00
Harshavardhana
2178568417 make STS support for 'mc' alias specific (#4771)
currently STS specific behavior is global,
`mc` however supports multiple aliases - we
need to make sure that `mc` treats this ENV
specific to an alias.
2023-11-26 01:35:13 -08:00
Pedro Juarez
b1d4341fcb add STS support for mc admin command (#4754) 2023-11-11 23:08:33 -08:00
Harshavardhana
062f28c9cc allow 'mc' flags to have ENV equivalent (#4720)
it simplifies the codebase a bit and also
allows for `mc` to easily be configured in
containerized environments.
2023-10-16 22:51:25 -07:00
Sveinn
87d6cd2d4f Validation optimization - reduce HEAD calls during cp and mv operations (#4710) 2023-10-12 11:30:11 -07:00
Aditya Manthramurthy
e2056fb057 Update to minio/pkg v2 (#4674) 2023-09-02 14:28:03 -07:00
Harshavardhana
1fbd97aa04 run gofumpt -extra on all source files (#4634) 2023-07-17 13:10:20 -07:00
adfost
fd7142e223 update license headers to 2022 (#4360) 2022-11-14 18:38:39 -08:00
Harshavardhana
2f1d44eee2 convert tabs to spaces in all commands (#4275) 2022-09-29 11:14:57 -07:00
Harshavardhana
f022a57088 feat: support head with --zip (#4219) 2022-08-24 23:10:03 -07:00
Klaus Post
cb7f9b6db2 Add mc cat --tail and --offset (#4149)
Allow range requests for cat operations, either specifying tail or an absolute offset.

If tail is longer then fail, the entire file is listed.
2022-07-18 21:22:10 -07:00
Krishnan Parthasarathi
b5a0640899 Prefix version suspension (#4064) 2022-05-08 18:15:17 -07:00
Klaus Post
2f42260f98 Add remote zip support to mc ls/cp/cat (#3977)
--zip flag is hidden for now
2022-02-15 03:09:39 -08:00
Harshavardhana
a59f9e4d30 add gofumpt support, automated cleanup (#3911) 2022-01-06 10:55:40 -08:00
Harshavardhana
ae271e7645 add new linters and fix unnecessary type conversions (#3835) 2021-10-14 15:33:31 -07:00
Harshavardhana
4af8b2d20b do not prematurely default multipart to 16MiB 2021-07-27 08:42:07 -07:00
Harshavardhana
c3ab68ed1e allow configuring multipart size for testing (#3761)
add MC_UPLOAD_MULTIPART_SIZE, MC_UPLOAD_MULTIPART_THREADS
to test in situations when default values are not enough
for showing proper bandwidth usage.
2021-07-23 09:21:59 -07:00
Harshavardhana
1402987ccb change license to AGPLv3 2021-05-11 17:45:08 -07:00
Anis Elleuch
a093f822e2 Avoid automatic copy of storage class (#3681) 2021-04-06 10:24:34 -07:00
Cesar N
d4f9ea859d Change GetOptions' fields to public (#3498)
This allows minio/console to take advantage of the current
S3Client Get function for downloading objects with version
2020-11-19 13:43:35 -08:00
Anis Elleuch
af6cff00a5 retention: Refactor and add support of versioning (#3347) 2020-09-06 10:33:15 -07:00
Anis Elleuch
35632bc1af head: Add support of --version-id and --rewind (#3354) 2020-08-26 10:38:35 -07:00
Anis Elleuch
ec734d0f71 Add --rewind flag for cat command (#3321) 2020-07-28 13:19:56 -07:00
Anis Elleuch
442facedd1 Implement rewind flag in ls and cp commands (#3304)
--rewind will go back in time and select specific object versions that are
the latest at the specified time.

--versions will display all the versions

cp will just ignore if the latest version is a delete marker
ls will print delete markers with a (deleted) at the end
2020-07-23 11:18:38 -07:00
Harshavardhana
f3c9e9172a honor preserve flag during Copy operation (#3299)
continuation of #3285 which wasn't complete
2020-07-15 16:39:04 -07:00
Anis Elleuch
a419bb4130 Use minio-go v7 and madmin master (#3295) 2020-07-14 11:15:19 -07:00
ebozduman
5c713e5ecb Adds support to preserve X-Amz-Meta-Mc-Attrs when os -> fs (#3285) 2020-07-03 15:31:27 -07:00
Harshavardhana
08685bae6a make sure active/active enables watch by default (#3271)
- effectively use context everywhere
- effectively look for source-mtime in all
  variations
- `mc diff` should do metadata diff as well
2020-06-23 16:56:08 -07:00
ebozduman
d5b6931a1e Apply global context for all apis (#3240) 2020-06-16 16:55:31 -07:00
kannappanr
09f832f597 copyobject: Do not ignore storage class in the target (#3232)
Fixes #3230
2020-05-24 14:23:28 -07:00
Bala FA
4e3b501528 add --storage-class flag to pipe command. (#3204)
Fixes #3157
2020-05-06 23:06:01 -07:00
Harshavardhana
dc2ad27429 fix mirror crash if source is deleted (#3206) 2020-05-05 23:55:35 -07:00
Harshavardhana
b99c313366 cleanup legal-hold/retention and update docs (#3197) 2020-05-04 20:09:36 -07:00
Harshavardhana
24a72e4a33 fix add disable-multipart/md5 options for mirror (#3174) 2020-04-21 13:05:01 +05:30
kannappanr
e1617a504b Canonicalize metadata recevied as part of events (#3181) 2020-04-19 10:10:40 -07:00
Harshavardhana
2d6a960f94 fix avoid multiple HEAD operations (#3173)
- Get() already has the metadata to preserve
- Stat() doesn't need to be sent multiple times
  do preserve attributes, use it once.
2020-04-17 01:01:34 -07:00
Harshavardhana
4036009dc2 fix optimize content-type detection for only FS (#3172)
Also avoid a secondary Stat() operation during
GetObject(), when preserving the metadata

Fixes #3170
2020-04-16 19:03:02 -07:00
Anis Elleuch
59187f2ef7 s3: Use head API before listing in client.Stat() (#3156)
Stat() is supposed to return valid information for existing
objects and existing prefixes as well.

The current mechanism issues a listing request and searches
for the object or prefix in the returned list, but this could take
time if there are a lot of entries under a parent prefix.

The new commit changes the internal behavior but not the
functional output. It issues a HEAD request first, if there
is no object then assumes it is a prefix and does listing
in order to find it.
2020-04-16 16:23:37 -07:00
Nitish Tiwari
18f81e5458 cp: Add object lock related flags (#3127)
- Adds --retention-mode,--retention-duration &
  --legal-hold flags in cp command

- Adds --bypass flag in rm command
2020-04-07 19:51:20 -07:00
Bala FA
3b31837927 add disableMultipart option to Copy() (#3141) 2020-04-03 20:14:05 -07:00
Daniel Valdivia
4d36c1f8b8 Make NewS3Config and NewAdminFactory Public (#3138) 2020-04-02 19:41:31 -07:00