Difference between revisions of "Shell Commands/MirrorCheck"
From MorphOS Library
(Created page with "'''MirrorCheck''' - Compares contents of two directories recursively A=SOURCEA/A,B=SOURCEB/A,BUF=BUFSIZE/N,SRD=SKIPROOTDOTFILES/S,COM=CHECKCOMMENTS/S, Q=QUIET/S,LFORMAT/K,SKI...") |
|||
| Line 32: | Line 32: | ||
MirrorCheck prints a "mismatch" line for each directory entry that differs. Characters from the SKIP argument indicate the difference for each entry. | MirrorCheck prints a "mismatch" line for each directory entry that differs. Characters from the SKIP argument indicate the difference for each entry. | ||
| + | |||
| + | The official documentation can be found from the SYS:MorphOS/Locale/Help/english/MirrorBackup.guide file. | ||
Examples: | Examples: | ||
Revision as of 12:07, 25 June 2026
MirrorCheck - Compares contents of two directories recursively
A=SOURCEA/A,B=SOURCEB/A,BUF=BUFSIZE/N,SRD=SKIPROOTDOTFILES/S,COM=CHECKCOMMENTS/S, Q=QUIET/S,LFORMAT/K,SKIP/K,STATS/S
SOURCEA - Directory A
SOURCEB - Directory B
BUFSIZE - Buffer size in kilobytes (default 1024)
SKIPROOTDOTFILES - Exclude files and dirs in the root source dir that start
with a dot (.recycled and .trashcan, for example)
CHECKCOMMENTS - Enable file comments comparison
QUIET - Output differences only
LFORMAT - Optional output formatting string:
%P prints the file parent path including / or :
%N prints the file name
%M prints the file name without the extension
%E prints the file extension without the dot
%Q prints characters describing differences
SKIP - Disable specific tests:
F skips comparing file contents
N skips comparing name cases
O skips comparing owner information
P skips comparing protection bits
C skips comparing file comments
D skips comparing dates
S skips comparing file sizes
T skips comparing file types (dir, file, link)
L skips comparing soft links
< skips checking existence of a file in B
> skips checking existence of a file in A
STATS - Prints statistics of the compare operation
MirrorCheck prints a "mismatch" line for each directory entry that differs. Characters from the SKIP argument indicate the difference for each entry.
The official documentation can be found from the SYS:MorphOS/Locale/Help/english/MirrorBackup.guide file.
Examples:
MirrorCheck A=Work:Music B=SMB2FS0:Music SKIP="NOP" QUIET