Revises 'mc diff' command help menu (#2383)
This commit is contained in:
+9
-10
@@ -35,7 +35,7 @@ var (
|
||||
// Compute differences between two files or folders.
|
||||
var diffCmd = cli.Command{
|
||||
Name: "diff",
|
||||
Usage: "List objects with size difference or missing between two folders or buckets.",
|
||||
Usage: "List differences in object name, size, and date between folders.",
|
||||
Action: mainDiff,
|
||||
Before: setGlobalsFromContext,
|
||||
Flags: append(diffFlags, globalFlags...),
|
||||
@@ -49,21 +49,20 @@ FLAGS:
|
||||
{{range .VisibleFlags}}{{.}}
|
||||
{{end}}
|
||||
DESCRIPTION:
|
||||
Diff only lists missing objects or objects with size differences. It *DOES NOT* compare contents.
|
||||
i.e. objects of same name and size, but differing in content are not noticed.
|
||||
Diff only calculates differences in object name, size and time.
|
||||
It *DOES NOT* compare objects' contents.
|
||||
|
||||
Differences between source and destination are represented by mark notations with following meaning:
|
||||
> - indicates file should be copied.
|
||||
< - indicates file should be deleted.
|
||||
! - indicates file differs in size or type.
|
||||
LEGEND:
|
||||
> - object is only in source.
|
||||
< - object is only in destination.
|
||||
! - newer object is in source.
|
||||
|
||||
EXAMPLES:
|
||||
1. Compare a local folder with a folder on Amazon S3 cloud storage.
|
||||
$ {{.HelpName}} ~/Photos s3/MyBucket/Photos
|
||||
$ {{.HelpName}} ~/Photos s3/mybucket/Photos
|
||||
|
||||
2. Compare two different folders on a local filesystem.
|
||||
2. Compare two folders on a local filesystem.
|
||||
$ {{.HelpName}} ~/Photos /Media/Backup/Photos
|
||||
|
||||
`,
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user