Shell Commands/MirrorCopy
From MorphOS Library
MirrorCopy - Mirrors directory trees
F=FROM/A,T=TO/A,V=VERBOSE/S,Q=QUIET/S,ND=NODEL=NODELETE/S,NC=NOCRE=NOCREATION/S, NR=NOREC=NORECREATION/S,NU=NOUPD=NOUPDATE/S,A=ALL/S,NS=NOSOFT/S,NH=NOHARD/S, DD=DELDIR/K,OD=OLDDIR/K,FP=FILEPAT/K,DP=DIRPAT/K,MNDD=MAKENODUMMYDIRS/S,S=STAT=STATS/S, B=BUF=FILEBUFFERSIZE/N,DOSBUFFERS/K/N,D=DATE/S,DATEFORMAT=DATEFMT/K,CNT=CONTINUE/S, SRD=SKIPROOTDOTFILES/S,LOG=LOGFILE/K
FROM - Source directory
TO - Destination directory
VERBOSE - Displays additional information
QUIET - Suppresses all output but errors
NODELETE - Do not delete any entries from the destination
NOCREATION - Not implemented currently
NORECREATION - Do not recreate any entries in the destination,
like replacing a file with a directory
NOUPDATE - Do not update any entries in the destination, but
entries may still be created and deleted
ALL - Includes sub-directories in the operation
NOSOFT - Do not copy soft links, but they still may be
removed from the destination
NOHARD - Do not copy or delete hard links, but they still
can get overwritten by different types of entries
DELDIR - Move files into a specified directory instead of deleting them
(DELDIR must reside on the same volume as TO)
OLDDIR - Not implemented currently
FILEPAT - Not implemented currently
DIRPAT - Not implemented currently
MAKENODUMMYDIRS - Not implemented currently
STATS - Prints statistics of the mirroring operation
FILEBUFFERSIZE - Buffer size in kilobytes (default 1024)
DOSBUFFERS
DATE - Creates a date-based sub-directory where files are moved with
the DELDIR option
DATEFORMAT
CONTINUE
SKIPROOTDOTFILES - Exclude files and dirs in the root dir
LOGFILE
Examples:
MirrorCheck A=Work:Music B=SMB2FS0:Music SKIP="NOP" QUIET