Skip to content

Mirror command with --watch doesn't honor --exclude option #2319

@Vesnica

Description

@Vesnica

Expected behaviour

mirror command with --watch should honor --exclude option

Actual behaviour

mirror command with --watch doesn't honor --exclude option

Steps to reproduce the behaviour

  1. Create 2 minio instance on different node, and make a test bucket on both instance
  2. Config the mc host, let's say local and target
  3. ./mc mirror --force --remove --watch --exclude ".*" --exclude "*.temp" local/test target/test
  4. Create another shell, execute: ./mc cp test.temp local/test
  5. You can see mirror command sync the test.temp to target incorrectly
  6. ./mc ls target/test/ can see the test.temp file

mc version

Version: 2017-10-14T00:51:16Z
Release-tag: RELEASE.2017-10-14T00-51-16Z
Commit-id: 785e14a

System information

Ubuntu 16.04

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions