Question : ROBOCOPY

I am trying to user Robocopy to copy directory structure from
One Server to another Server. I don't want robocopy to copy
NTFS Permission to dest server.
Here is the script
@ECHO OFF
SETLOCAL

SET _source=\\FileServ1\e$\users

SET _dest=\\FileServ2\e$\BackupUsers

SET _what=/COPYALL /B /SEC /MIR
:: /COPYALL :: COPY ALL file info
:: /B :: copy files in Backup mode.
:: /SEC :: copy files with SECurity
:: /MIR :: MIRror a directory tree

SET _options=/R:0 /W:0 /LOG:MyLogfile.txt /NFL /NDL
:: /R:n :: number of Retries
:: /W:n :: Wait time between retries
:: /LOG :: Output log file
:: /NFL :: No file logging
:: /NDL :: No dir logging

ROBOCOPY %_source% %_dest% %_what% %_options%

How do I stop to overight permission on Destionation

Answer : ROBOCOPY

Don't use /copyall and/or /sec. Default to copy is simply DAT: Data, Attributes, Timestamps.
/sec, btw, is completely unnecessary with /copyall, /copyall includes /sec.
SET _what=/B /MIR
Random Solutions  
 
programming4us programming4us