Robo Copy command

Balayuvaraj M 56 Reputation points
2022-01-20T13:06:08.867+00:00

Need a robo copy command

Need a help in robo copy command. Need to transfer stub files(Archive files) and actual files from source to destination.

robocopy.exe "Source" "Destination" /COPYALL /E /ZB /XO /W:0 /R:0 /XA:O /NP /LOG:XYZ.log - Using this command only copies actual data, Exclude stub files

robocopy.exe "Source" "Destination" /COPYALL /E /ZB /XO /W:0 /R:0 /IA:O /NP /LOG:XYZ.log - using this command in the source path files are converting to actual file and files are getting copy to destination . This will cause disk full issue.

Need a robocopy command that need to copy the stub data from source to destination

Windows for business Windows Server User experience Other
0 comments No comments
{count} votes

3 answers

Sort by: Most helpful
  1. Charles Thivierge 4,171 Reputation points
    2022-01-20T14:09:48.817+00:00

    I did a quick test using the following command "robocopy.exe "Source" "Destination" /COPYALL /E /ZB /XO /W:0 /R:0 /XA:O /NP /LOG:XYZ.log" and the archive files as well as the others are copied to the destination folder.

    By archive file you mean the files that has the attribute A ?

    0 comments No comments

  2. MotoX80 36,291 Reputation points
    2022-01-20T15:41:18.85+00:00

    Need a robocopy command that need to copy the stub data from source to destination

    It sounds like you are using some software solution that watches your disk and for files that have not been referenced in a given amount of time, it will archive the actual data file to tape or some other mass storage device and in it's place leaves a file with the same name (the stub) that has the archive attribute set.

    So an end user would see \server\share\folder\MySpreadSheet.xls. If they tried to open the file with Excel, the archiving software would recognize that (from the archive attribute) and replace the stub file with the actual data file that the end user could then open.

    Is that correct? Is that how it works?

    If so, then Robocopy would have no way of knowing that the file is a stub or the actual data file. It's just a file with the archive attribute set. Robocopy.exe reading the file would be no different from Excel.exe reading the file.

    You might have better luck reaching out to the product support for whatever software you are using. Because even if you were able to move the stub, that software might not recognize it because it's now in a different folder.

    You could try a test by stopping the Service that the archiving software runs as and copy one file to a different directory. Then start the service and try to open the file. Do you get the actual data file or something else?

    0 comments No comments

  3. Limitless Technology 39,916 Reputation points
    2022-01-21T09:32:22.84+00:00

    Hello BalayuvarajM

    Unfortunately Robocopy is a block level copy file and when handling stubs will treat them like data, thus what is called "inflating" those files.

    In the scenario with stubs, you need to work with an FSA migration tool from a 3rd Party as Microsoft doesn't offer that FSA tools. Some examples are FSAUtility or FSAMigrator


    --If the reply is helpful, please Upvote and Accept as answer--

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.