Windows 10: Backup and compare with robocopy not working

Discus and support Backup and compare with robocopy not working in Windows 10 Backup and Restore to solve the problem; I've backed up the Windows folder from a Windows 10 boot drive with robocopy F:\Windows E:\roboRubi\Windowsz /mir Both source and target drives are... Discussion in 'Windows 10 Backup and Restore' started by antonio3535, May 5, 2021.

  1. Backup and compare with robocopy not working


    I've backed up the Windows folder from a Windows 10 boot drive with robocopy F:\Windows E:\roboRubi\Windowsz /mir Both source and target drives are attached to internal SATA ports. None of the two drives (source and target) is the boot drive I'm booted into. I'm using an elevated command prompt. I compared the two folders afterwards in File Explorer and found that, surprisingly, the backup folder has more files and overall size than the source folder (as shown in picture). I suspect both folders are really the same, but that Windows 10 may not be accessing all files in the source folder due to permission issues, I mean when I compare then in File Explorer? So I tried to compare both folders with robocopy F:\Windows E:\roboRubi\Windowsz /L /NJH /NJS /NP /NS /log:C:\compare.txt but this doesn't seem to work, it just instantly displays this path and does nothing: Log File : C:\compare.txt Is there a way to check this backup properly? I'd rather use robocopy than any other third party tool. Any help much welcome Windows 10 Pro 20H2.

    :)
     
    antonio3535, May 5, 2021
    #1

  2. Backup and compare with robocopy not working

    I've backed up the Windows folder from a Windows 10 boot drive with

    robocopy F:\Windows E:\roboRubi\Windowsz /mir

    Both source and target drives are attached to internal SATA ports. None of the two drives (source and target) is the boot drive I'm booted into. I'm using an elevated command prompt.

    I compared the two folders afterwards in File Explorer and found that, surprisingly, the backup folder has more files and overall size than the source folder (as shown in picture).

    I suspect both folders are really the same, but that Windows 10 may not be accessing all files in the source folder due to permission issues, I mean when I compare then in File Explorer?

    So I tried to compare both folders with

    robocopy F:\Windows E:\roboRubi\Windowsz /L /NJH /NJS /NP /NS /log:C:\compare.txt

    but this doesn't seem to work, it just instantly displays this path and does nothing:

    Log File : C:\compare.txt

    Is there a way to check this backup properly?
    I'd rather use robocopy than any other third party tool.

    Any help much welcome

    Windows 10 Pro 20H2.

    Backup and compare with robocopy not working [​IMG]
     
    antonio3535, May 5, 2021
    #2
  3. Backup and compare with robocopy not working

    I didn't mention that none of the 2 drives involved (source and target) is the boot drive I'm using, as I thought the E:\ and F:\ paths would be telling (sorry I wasn't more clear).
    I'll try again with the /b (both on the backup and on the comparison test) and come back to you.
    Thanks a lot for your answers.

    - - - Updated - - -

    I didn't mention that none of the 2 drives involved (source and target) is the boot drive I'm using, as I thought the E:\ and F:\ paths would be telling (sorry I wasn't more clear).
    I'll try again with the /b (both on the backup and on the comparison test) and come back to you.
    Thanks a lot for your answer

    - - - Updated - - -

    I tried with Treesize and it gives me exactly the same result as File Explorer. Then I compared source and backup with WinMerge and the result seems to indicate that neither File Explorer nor Winmerge are accessing some files and folders in the source directory.

    My initial question is partly solved by adding /B to the robocopy comparison command:
    robocopy F:\Windows E:\roboRubi\Windowsz /L /NJH /NJS /NP /NS /B /log:C:\compare.txt
    ...but I don't understand the output file, it seems to show all of the file transfers instead of only the differences? what I need is the differences.


    Backup and compare with robocopy not working [​IMG]


    Backup and compare with robocopy not working [​IMG]


    Backup and compare with robocopy not working [​IMG]
     
    antonio3535, May 5, 2021
    #3
  4. Backup and compare with robocopy not working

    Backup and compare with robocopy not working

    You forgot to add the /NDL switch I noted previously. Without it, robocopy will list every blasted directory whether there are any differences or not. Add the /NDL and only file differences will be shown. Note that the full path for each file will still be shown. Also, missing and extra directories will still be shown. The /NDL will merely suppress the listing of every directory that is not relevant to actual differences.
     
    hsehestedt, May 5, 2021
    #4
Thema:

Backup and compare with robocopy not working

Loading...
  1. Backup and compare with robocopy not working - Similar Threads - Backup compare robocopy

  2. Robocopy Backup Files are no longer visible or accessible

    in Windows 10 Gaming
    Robocopy Backup Files are no longer visible or accessible: I've been using Robocopy for years to backup folders. All of a sudden, my backup folders and files are no longer visible or accessible. I've tried removing system and hidden file attributes which I never had to do before but that didn't help. I've also tried all the...
  3. Robocopy Backup Files are no longer visible or accessible

    in Windows 10 Software and Apps
    Robocopy Backup Files are no longer visible or accessible: I've been using Robocopy for years to backup folders. All of a sudden, my backup folders and files are no longer visible or accessible. I've tried removing system and hidden file attributes which I never had to do before but that didn't help. I've also tried all the...
  4. Offline image backup of OS: Robocopy ok?

    in Windows 10 Backup and Restore
    Offline image backup of OS: Robocopy ok?: Hi there! I would like to do an offline image backup of my OS-drive. I'm only interested in the OS itself. The data is backed up separately (and resides on a different drive). For high security, I'd like to avoid using any third party software. I will be installing win 10...
  5. Cannot backup or robocopy windowsimagefile

    in Windows 10 Installation and Upgrade
    Cannot backup or robocopy windowsimagefile: I am unable to either backup this file using File History, or copy it using a Robocopy script. Robocopy simply "skips" it, according to the result of the script from the cmd command. I suspect is has to do with all the permissions requirements, but have made sure I log in...
  6. Backup with robocopy file count and size are different

    in Windows 10 Network and Sharing
    Backup with robocopy file count and size are different: I always try to keep up 3 copies and found the tool robocopy /mir as very useful. After some years I run into a big issue. Why there is such a big discrepancy in file size and count eating up the space on my external drive? See attached screenshot: [ATTACH] If I compare...
  7. Robocopy backup to NAS does not work : "Access is denied"

    in Windows 10 Backup and Restore
    Robocopy backup to NAS does not work : "Access is denied": I'm trying to backup a directory on my laptop to my NAS with a script : robocopy D:\Videos "Z:\Shared Videos" /MIR /XJ When I run the script, I get the error message "Access is denied." However, in the File Explorer I can drag-and-drop files to the NAS. Also with iPhone...
  8. robocopy backup of important files

    in Windows 10 Backup and Restore
    robocopy backup of important files: hi, I have a standard Windows 10 build and I'm using y to backup my data to an external drive. The goal is just to capture all my data so if the PC fails/gets stolen etc. I can restore my data on to another PC. I'm doing a backup of c:\users\ as this seems to capture...
  9. Run Robocopy to backup file on shutdown, does not seem to work.

    in Windows 10 Backup and Restore
    Run Robocopy to backup file on shutdown, does not seem to work.: I want to run Robocopy to copy my Money 2005 file every shutdown, I know Money has a backup facility but when my wife runs Money on her laptop (Using Homegroup) there is always a backup conflict with my PC and if I open Money and try to backup I get the same problem in...
  10. Robocopy backup won't work

    in Windows 10 Backup and Restore
    Robocopy backup won't work: I tried to use the built-in Windows program called Robocopy to back up my files using the following command on the command line: robocopy Documents J:\robocopy /e This command works fine on my laptop But it would not work on my desktop computer for some reason It...