You say all the data is under a single root directory so I'll assum that means you only have a single - I believe the share permissions aren't tied to the files / folders themselves, they're kinda stored in the registry, so most file copy utilities can't get those. LOG:file :: output status to LOG file (overwrite existing log). TEE :: output to console window, as well as the log file. V :: produce Verbose output, showing skipped files. W:n :: Wait time between retries: default is 30 seconds but I set this to 1 second. R:n :: number of Retries on failed copies: default is 1 million but I set this to only retry once. Copies the Data, Attributes, Timestamps, Ownser, Permissions and Auditing info COPYALL :: COPY ALL file info (equivalent to /COPY:DATSOU). ZB :: use restartable mode if access denied use Backup mode. E :: copy subdirectories, including Empty ones. Source :: Source Directory (drive:\path or \\server\share\path).ĭestination :: Destination Dir (drive:\path or \\server\share\path). Robocopy source destination /E /ZB /DCOPY:T /COPYALL /R:1 /W:1 /V /TEE /LOG:Robocopy.log Here's the command I typically use when I want to retain all permisions, ownership and timestamps of the entire folder structure and data:
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |