Shell Commands/MirrorCopy

From MorphOS Library

Revision as of 14:30, 24 June 2026 by JPV (talk | contribs)

< Shell Commands

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   - File copy buffer size in kilobytes (default 1024)
DOSBUFFERS       - Changes drive's cache buffers temporarily to this value
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 that start
                   with a dot (.recycled and .trashcan, for example)
LOGFILE          -

Examples: