Guest mohaaron Posted August 26, 2007 Posted August 26, 2007 I recently copied a number of directories using robocopy and didn't know to add either the /COPYALL or /SEC to copy the permissions. Does anyone know how I might be able to do this now that the copies have been done? thanks.
Guest Mathieu CHATEAU Posted August 26, 2007 Posted August 26, 2007 Re: copy file/folder permissions after robocopy Hello, You may just launch it again with: /COPY:S this will only copy the security settings -- Cordialement, Mathieu CHATEAU http://lordoftheping.blogspot.com "mohaaron" <mohaaron@gmail.com> wrote in message news:1188101106.097896.132800@e9g2000prf.googlegroups.com... >I recently copied a number of directories using robocopy and didn't > know to add either the /COPYALL or /SEC to copy the permissions. Does > anyone know how I might be able to do this now that the copies have > been done? > > thanks. >
Guest mohaaron Posted August 26, 2007 Posted August 26, 2007 Re: copy file/folder permissions after robocopy On Aug 26, 1:09 am, "Mathieu CHATEAU" <gollum...@free.fr> wrote: > Hello, > > You may just launch it again with: > /COPY:S > this will only copy the security settings > > -- > Cordialement, > Mathieu CHATEAUhttp://lordoftheping.blogspot.com > > "mohaaron" <mohaa...@gmail.com> wrote in message > > news:1188101106.097896.132800@e9g2000prf.googlegroups.com... > > >I recently copied a number of directories using robocopy and didn't > > know to add either the /COPYALL or /SEC to copy the permissions. Does > > anyone know how I might be able to do this now that the copies have > > been done? > > > thanks. Do I use this with or without the /MIR switch? thanks
Guest Mathieu CHATEAU Posted August 26, 2007 Posted August 26, 2007 Re: copy file/folder permissions after robocopy if the data didn't change both on source and destination, it shouldn't be necessay -- Cordialement, Mathieu CHATEAU http://lordoftheping.blogspot.com "mohaaron" <mohaaron@gmail.com> wrote in message news:1188153420.679795.104740@q5g2000prf.googlegroups.com... > On Aug 26, 1:09 am, "Mathieu CHATEAU" <gollum...@free.fr> wrote: >> Hello, >> >> You may just launch it again with: >> /COPY:S >> this will only copy the security settings >> >> -- >> Cordialement, >> Mathieu CHATEAUhttp://lordoftheping.blogspot.com >> >> "mohaaron" <mohaa...@gmail.com> wrote in message >> >> news:1188101106.097896.132800@e9g2000prf.googlegroups.com... >> >> >I recently copied a number of directories using robocopy and didn't >> > know to add either the /COPYALL or /SEC to copy the permissions. Does >> > anyone know how I might be able to do this now that the copies have >> > been done? >> >> > thanks. > > Do I use this with or without the /MIR switch? > > thanks >
Guest mohaaron Posted August 26, 2007 Posted August 26, 2007 Re: copy file/folder permissions after robocopy I just tried the following two scripts and neither did what I wanted. robocopy \\server\HR \\mpserver\HR /COPY:S /LOG+:"D:\Shared\Robocopy Scripts\MIR HR ACL Log.txt" RESULTS: ************************************************************************************************** ------------------------------------------------------------------------------- ROBOCOPY :: Robust File Copy for Windows :: Version XP010 ------------------------------------------------------------------------------- Started : Sun Aug 26 13:27:59 2007 Source : \\server\HR\ Dest : \\mpserver\HR\ Files : *.* Options : *.* /COPY:S /R:1000000 /W:30 ------------------------------------------------------------------------------ 11 \\server\HR\ ------------------------------------------------------------------------------ Total Copied Skipped Mismatch FAILED Extras Dirs : 1 0 1 0 0 0 Files : 11 0 11 0 0 0 Bytes : 403.1 k 0 403.1 k 0 0 0 Times : 0:00:00 0:00:00 0:00:00 0:00:00 Ended : Sun Aug 26 13:30:32 2007 ************************************************************************************************** It looks like nothing was changed. I can see that the security settings are still different so the script is not working. What else might I try?
Guest mohaaron Posted August 26, 2007 Posted August 26, 2007 Re: copy file/folder permissions after robocopy I'm now trying to use the /secfix switch which is in the kb article here: How to Use Robocopy to copy security information without copying any file data. http://support.microsoft.com/?kbid=323275. When I run. robocopy \\server\HR \\mpserver\HR /secfix /xo /xn /xc I get this error. invalid parameter #4 : /secfix Now what?
Guest Mathieu CHATEAU Posted August 26, 2007 Posted August 26, 2007 Re: copy file/folder permissions after robocopy The XP and .Net Version of Robocopy (XP010) includes all the above options (with the exception of /SECFIX and /TimFix) and adds a number of new features. Also the bugs listed below are fixed in the XP version. Need the older version, or remove the destination and copy the whole again (with /SEC instead of /COPY:S) -- Cordialement, Mathieu CHATEAU http://lordoftheping.blogspot.com "mohaaron" <mohaaron@gmail.com> wrote in message news:1188161089.609239.13750@q3g2000prf.googlegroups.com... > I'm now trying to use the /secfix switch which is in the kb article > here: > > How to Use Robocopy to copy security information without copying any > file data. > http://support.microsoft.com/?kbid=323275. > > When I run. > > robocopy \\server\HR \\mpserver\HR /secfix /xo /xn /xc > > I get this error. > > invalid parameter #4 : /secfix > > Now what? >
Recommended Posts