Robocopy fail to assign folder permissions

A

Adrian

I am trying to copy a selection of files from the user
workstations to one file server. Even though robocopy
correctly assign the permissions to the individual files
it fail to assign the same permissions to the folders. I
tried looking in the KB and the Resource Kit documentation
with no luck. Any help will be greatly appreciated.

Adrian
 
A

Adrian

I am running using all the switches for file attributes
(/COPYALL) which includes the /s switch. On the other
hand, trying to appy permissions on the files after they
are copied using the /secfix switch fails to apply the
permissions. Any suggestions?

Adrian
 
G

Grant Getz

I don't find a /COPYALL parameter in the documentation I have and the /s
switch copies subdirectories, does not include permissions.

----------------------------------------------------------------------
ROBOCOPY v 1.96 : Robust File Copy for Windows NT
----------------------------------------------------------------------

Started : Fri Dec 12 08:19:35 2003

Usage : ROBOCOPY source destination [file [file]...] [options]

source : Source Directory (drive:\path or \\server\share\path).
destination : Destination Dir (drive:\path or \\server\share\path).
file : File(s) to copy (names/wildcards: default is "*.*").

Copy options: /S : copy Subdirectories, but not empty ones.
/E : copy subdirectories, including Empty ones.
/LEV:n : only copy the top n LEVels of the source directory
tree.

/Z : copy files in restartable mode.

/SEC : copy SECurity info (both source and dest must be
NTFS).
/SECFIX : FIX SECurity info on existing files and dirs.
/TIMFIX : FIX TIMestamps on existing destination files.

/MOV : MOVe files (delete from source after copying).
/MOVE : MOVE files AND dirs (delete from source after
copying).

/PURGE : delete dest files/dirs that no longer exist in source.
/MIR : MIRror a directory tree (equivalent to /E plus
/PURGE).

/A+:[R][A][H] : add the given Attributes to copied files.
/A-:[R][A][H] : remove the given Attributes from copied files.

/CREATE : CREATE directory tree structure + zero-length files
only.
/FAT : create destination files using 8.3 FAT file names
only.

File Selection: /A : copy only files with the Archive attribute set
/M : like /A, but remove Archive attribute from source
files.
/IA:[R][A][H] : Include only files with some of the given Attributes
set.
/XA:[R][A][H] : eXclude files with any of the given Attributes set.

/XF file [file]... : eXclude Files matching given names/paths/wildcards.
/XD dirs [dirs]... : eXclude Directories matching given names/paths.

/XC | /XN | /XO : eXclude Changed | Newer | Older files.
/XX | /XL : eXclude eXtra | Lonely files and dirs.
/IS : Include Same files.

/MAX:n : MAXimum file size - exclude files bigger than n bytes.
/MIN:n : MINimum file size - exclude files smaller than n
bytes.

/MAXAGE:n : MAXimum file AGE - exclude files older than n
days/date.
/MINAGE:n : MINimum file AGE - exclude files newer than n
days/date.
(If n < 1900 then n = n days, else n = YYYYMMDD date).

Retry Options: /R:n : number of Retries on failed copies: default is 1
million.
/W:n : Wait time between retries: default is 30 seconds.

/REG : Save /R:n and /W:n in the Registry as default
settings.

/TBD : wait for sharenames To Be Defined (retry error 67).

Logging Options: /L : List only - don't copy, timestamp or delete any files.
/X : report all eXtra files, not just those selected.
/V : produce Verbose output, showing skipped files.

/NP : No Progress - don't display % copied.
/ETA : show Estimated Time of Arrival of copied files.

/LOG:file : output status to LOG file (overwrite existing log).
/LOG+:file : output status to LOG file (append to existing log).
 
J

Jerold Schulman

Download the newest version from tip 6705 in the 'Tips & Tricks' at
http://www.jsiinc.com

I don't find a /COPYALL parameter in the documentation I have and the /s
switch copies subdirectories, does not include permissions.

----------------------------------------------------------------------
ROBOCOPY v 1.96 : Robust File Copy for Windows NT
----------------------------------------------------------------------

Started : Fri Dec 12 08:19:35 2003

Usage : ROBOCOPY source destination [file [file]...] [options]

source : Source Directory (drive:\path or \\server\share\path).
destination : Destination Dir (drive:\path or \\server\share\path).
file : File(s) to copy (names/wildcards: default is "*.*").

Copy options: /S : copy Subdirectories, but not empty ones.
/E : copy subdirectories, including Empty ones.
/LEV:n : only copy the top n LEVels of the source directory
tree.

/Z : copy files in restartable mode.

/SEC : copy SECurity info (both source and dest must be
NTFS).
/SECFIX : FIX SECurity info on existing files and dirs.
/TIMFIX : FIX TIMestamps on existing destination files.

/MOV : MOVe files (delete from source after copying).
/MOVE : MOVE files AND dirs (delete from source after
copying).

/PURGE : delete dest files/dirs that no longer exist in source.
/MIR : MIRror a directory tree (equivalent to /E plus
/PURGE).

/A+:[R][A][H] : add the given Attributes to copied files.
/A-:[R][A][H] : remove the given Attributes from copied files.

/CREATE : CREATE directory tree structure + zero-length files
only.
/FAT : create destination files using 8.3 FAT file names
only.

File Selection: /A : copy only files with the Archive attribute set
/M : like /A, but remove Archive attribute from source
files.
/IA:[R][A][H] : Include only files with some of the given Attributes
set.
/XA:[R][A][H] : eXclude files with any of the given Attributes set.

/XF file [file]... : eXclude Files matching given names/paths/wildcards.
/XD dirs [dirs]... : eXclude Directories matching given names/paths.

/XC | /XN | /XO : eXclude Changed | Newer | Older files.
/XX | /XL : eXclude eXtra | Lonely files and dirs.
/IS : Include Same files.

/MAX:n : MAXimum file size - exclude files bigger than n bytes.
/MIN:n : MINimum file size - exclude files smaller than n
bytes.

/MAXAGE:n : MAXimum file AGE - exclude files older than n
days/date.
/MINAGE:n : MINimum file AGE - exclude files newer than n
days/date.
(If n < 1900 then n = n days, else n = YYYYMMDD date).

Retry Options: /R:n : number of Retries on failed copies: default is 1
million.
/W:n : Wait time between retries: default is 30 seconds.

/REG : Save /R:n and /W:n in the Registry as default
settings.

/TBD : wait for sharenames To Be Defined (retry error 67).

Logging Options: /L : List only - don't copy, timestamp or delete any files.
/X : report all eXtra files, not just those selected.
/V : produce Verbose output, showing skipped files.

/NP : No Progress - don't display % copied.
/ETA : show Estimated Time of Arrival of copied files.

/LOG:file : output status to LOG file (overwrite existing log).
/LOG+:file : output status to LOG file (append to existing log).



Adrian said:
I am running using all the switches for file attributes
(/COPYALL) which includes the /s switch. On the other
hand, trying to appy permissions on the files after they
are copied using the /secfix switch fails to apply the
permissions. Any suggestions?

Adrian



Jerold Schulman
Windows: General MVP
JSI, Inc.
http://www.jsiinc.com
 
G

Guest

Grant,

I tried using the /SEC. Since it was not working, I tried
using the latest version of robocopy. The /COPYALL
parameter is a new switch available in the Windows Server
2003 Win XP version of the utility.

Adrian
-----Original Message-----
I don't find a /COPYALL parameter in the documentation I have and the /s
switch copies subdirectories, does not include permissions.
----------------------------------------------------------
------------
ROBOCOPY v 1.96 : Robust File Copy for Windows NT
---------------------------------------------------------- ------------

Started : Fri Dec 12 08:19:35 2003

Usage : ROBOCOPY source destination [file [file]...] [options]

source : Source Directory (drive:\path or \\server\share\path).
destination : Destination Dir (drive:\path or \\server\share\path).
file : File(s) to copy (names/wildcards: default is "*.*").

Copy options: /S : copy Subdirectories, but not empty ones.
/E : copy subdirectories, including Empty ones.
/LEV:n : only copy the top n LEVels of the source directory
tree.

/Z : copy files in restartable mode.

/SEC : copy SECurity info (both source and dest must be
NTFS).
/SECFIX : FIX SECurity info on existing files and dirs.
/TIMFIX : FIX TIMestamps on existing destination files.

/MOV : MOVe files (delete from source after copying).
/MOVE : MOVE files AND dirs (delete from source after
copying).

/PURGE : delete dest files/dirs that no longer exist in source.
/MIR : MIRror a directory tree (equivalent to /E plus
/PURGE).

/A+:[R][A][H] : add the given Attributes to copied files.
/A-:[R][A][H] : remove the given Attributes from copied files.

/CREATE : CREATE directory tree structure + zero-length files
only.
/FAT : create destination files using 8.3 FAT file names
only.

File Selection: /A : copy only files with the Archive attribute set
/M : like /A, but remove Archive attribute from source
files.
/IA:[R][A][H] : Include only files with some of the given Attributes
set.
/XA:[R][A][H] : eXclude files with any of the given Attributes set.

/XF file [file]... : eXclude Files matching given names/paths/wildcards.
/XD dirs [dirs]... : eXclude Directories matching given names/paths.

/XC | /XN | /XO : eXclude Changed | Newer | Older files.
/XX | /XL : eXclude eXtra | Lonely files and dirs.
/IS : Include Same files.

/MAX:n : MAXimum file size - exclude files bigger than n bytes.
/MIN:n : MINimum file size - exclude files smaller than n
bytes.

/MAXAGE:n : MAXimum file AGE - exclude files older than n
days/date.
/MINAGE:n : MINimum file AGE - exclude files newer than n
days/date.
(If n < 1900 then n = n days, else n = YYYYMMDD date).

Retry Options: /R:n : number of Retries on failed copies: default is 1
million.
/W:n : Wait time between retries: default is 30 seconds.

/REG : Save /R:n and /W:n in the Registry as default
settings.

/TBD : wait for sharenames To Be Defined (retry error 67).

Logging Options: /L : List only - don't copy, timestamp or delete any files.
/X : report all eXtra files, not just those selected.
/V : produce Verbose output, showing skipped files.

/NP : No Progress - don't display % copied.
/ETA : show Estimated Time of Arrival of copied files.

/LOG:file : output status to LOG file (overwrite existing log).
/LOG+:file : output status to LOG file (append to existing log).



I am running using all the switches for file attributes
(/COPYALL) which includes the /s switch. On the other
hand, trying to appy permissions on the files after they
are copied using the /secfix switch fails to apply the
permissions. Any suggestions?

Adrian


.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top