minio / mc

Simple | Fast tool to manage MinIO clusters :cloud:

Home Page:https://min.io/download

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

mc mirror exclude option for folders not working

chenshi5012 opened this issue · comments

mc mirror
--exclude value exclude object(s) that match specified object name pattern

#2343

check this , not working..

Expected behavior

--exclude folders or folder/* to mirror unexpect files

Actual behavior

--exclude option can only support the object name . can not support folders

Steps to reproduce the behavior

image

mc --version

  • (paste output of mc --version)
    ~
    [minio@minio-0 /]$ mc --version
    mc version RELEASE.2023-10-12T07-08-21Z (commit-id=5d7d6f70aeb710a2345d58e61cb2e809bf48d58f)
    Runtime: go1.19.6 linux/amd64
    Copyright (c) 2015-2023 MinIO, Inc.
    License GNU AGPLv3 https://www.gnu.org/licenses/agpl-3.0.html
    [minio@minio-0 /]$
    ~

System information

fix by #4825