Go Back   TechArena Community > Technical Support > Computer Help > Windows Server > Windows Server Help
Become a Member!
Forgot your username/password?
Tags Active Topics RSS Search Mark Forums Read

Sponsored Links



copy file/folder permissions after robocopy

Windows Server Help


Reply
 
Thread Tools Search this Thread
  #1  
Old 26-08-2007
mohaaron
 
Posts: n/a
copy file/folder permissions after robocopy

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.


Reply With Quote
  #2  
Old 26-08-2007
Mathieu CHATEAU
 
Posts: n/a
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.
>


Reply With Quote
  #3  
Old 27-08-2007
mohaaron
 
Posts: n/a
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

Reply With Quote
  #4  
Old 27-08-2007
Mathieu CHATEAU
 
Posts: n/a
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
>


Reply With Quote
  #5  
Old 27-08-2007
mohaaron
 
Posts: n/a
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?

Reply With Quote
  #6  
Old 27-08-2007
mohaaron
 
Posts: n/a
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?

Reply With Quote
  #7  
Old 27-08-2007
Mathieu CHATEAU
 
Posts: n/a
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?
>


Reply With Quote
Reply

  TechArena Community > Technical Support > Computer Help > Windows Server > Windows Server Help
Tags: , , ,



Thread Tools Search this Thread
Search this Thread:

Advanced Search


Similar Threads for: "copy file/folder permissions after robocopy"
Thread Thread Starter Forum Replies Last Post
Robocopy - Copying Permissions john83 Windows Software 2 27-08-2010 07:22 PM
Copy To Folder... on every File and Folder technika Operating Systems 4 05-12-2009 04:16 PM
Unable to copy NTFS file permissions ( ACL) Vishal Singh Networking & Security 2 19-05-2009 02:08 PM
Robocopy not copying top level NTFS Permissions Crashball Windows Server Help 1 25-03-2009 03:28 PM
Need help-ROBOCOPY to move files/permissions from 1 server to anot pbrill1 Windows Server Help 7 25-09-2008 08:53 PM


All times are GMT +5.5. The time now is 04:21 PM.