none
Powershell and Robocopy - Failed files RRS feed

  • Question

  • Hello,

    I am currently working on a Powershell script to move websites from one server to another. One of the steps is copying the data, and I use Robocopy for that.

    I wanted to ask you if you know how can I check if all the files have been copied correctly, or if there has been any error with any of them.

    Right now what I do is save the log files, but I need to check manually the summary of the log to check if all of the files were copied, and then proceed.

    Each of failed file has a line on the log saying "The filename, directory name, or volume label syntax is incorrect.". I could parse the log searching for that line, but I think there must be an easier (and 'cleaner') solution!


    Thank you very much!

    Cheers
    Friday, January 7, 2011 4:17 PM

Answers

  • Hi,

     

    The following blog is helpful on checking Robocopy log and statuses:

     

    PowerShell and Robocopy Part 4

     

    More related series:

     

    Robocopy

     

    Best Regards

    Dale


    Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread. ”
    Monday, January 10, 2011 6:17 AM
    Moderator

All replies