Welcome to the upcoming version of the MinIO Documentation! The content on this page is under active development and may change at any time. If you can't find what you're looking for, check our legacy documentation. Thank you for your patience.

mc diff

Table of Contents

Description

The mc diff mc computes the differences between two filesystem directories or S3-compatible buckets. mc diff lists only those objects which are missing or which differ in size. mc diff does not compare the contents of objects.

Output Legend

mc diff uses the following legend when formatting the diff output:

FIRST < SECOND - object exists only in FIRST
FIRST > SECOND - object exists only in SECOND
FIRST ! SECOND - Newer object exists in FIRST

Examples

The following example assumes that the play alias exists in the mc configuration file. You can replace play with the alias for your preferred S3-compatible deployment.

See mc alias for more information on aliases.

mc diff play/bucket1 play/bucket2

Syntax

mc diff has the following syntax:

mc diff FIRST SECOND

diff supports the following arguments:

FIRST

The path to a filesystem directory or S3-compatible bucket.

SECOND

The path to a filesystem directory or S3-compatible bucket.