Windows 10: robocopy output has duplicate documents folder

Discus and support robocopy output has duplicate documents folder in Windows 10 Network and Sharing to solve the problem; Here's the ROBOCOPY command that I run to backup my documents folder to an external drive:ROBOCOPY C:\Users\ddd\Documents "%destdrive%:\xxx documents"... Discussion in 'Windows 10 Network and Sharing' started by DonaldMSmith, Aug 29, 2023.

  1. robocopy output has duplicate documents folder


    Here's the ROBOCOPY command that I run to backup my documents folder to an external drive:ROBOCOPY C:\Users\ddd\Documents "%destdrive%:\xxx documents" /XF ~* *.tmp *.temp desktop.ini /E /XO /XJ /XJD /XJF /PURGE /NP /NDL "/LOG:C:\Users\ddd\Documents\ \robocopy logs\document data log-%mydt%.txt"I'm surprised that this results in two documents folders, as shown in the attached image that was obtained using snip. I whited out the first part of the folder names, but they actually are identical!The top documents folder already existed before robocopy was run. It has the typical icon for documents.

    :)
     
    DonaldMSmith, Aug 29, 2023
    #1

  2. Robocopy copies folders not in Documents to my backup Documents folder on 2nd drive.

    Two things:

    • You must surroound your folder names with double quotes:

      robocopy "C:\Users\my name\Documents . . ." "D:\Dropbox\my name\Documents
      . . ."
    • Robocopy often hides target folders, causing users to think they are missing. Look for hidden folders.
     
    Frederik Long, Aug 29, 2023
    #2
  3. TWWade Win User
    Robocopy copies folders not in Documents to my backup Documents folder on 2nd drive.

    I currently have 2 PCs with Windows 10 that I backup Documents, Music, Pictures, and Videos to a 3rd PC folder that is backed up to the Cloud. On my PC, the Music, Pictures and Videos folders are not under Documents. They are at the same level as Documents
    under my user name.

    I had been using SyncToy to do the copying, but had to switch to Robocopy because SyncToy does not work right under Windows 10. All works fine. The SyncToy command and then the Robocopy command run on the 3rd PC.

    I want to eliminate the 3rd PC and move the backup folder to a 2nd hard drive on my PC. That is where the problem begins. Robocopy will now run on my PC. When Robocopy copies the Document folder to the backup Documents folder, it copies 'My Music', 'My
    Pictures' and 'My Videos' to the backup Documents folder. These folders do not exist in the Documents folder. It appears that there is some link that connects 'My Music' to the separate Music folder. The same applies to 'My Pictures' and 'My Videos'.

    This is the Robocopy command that I want to use to copy the Documents data to the backup Documents folder:

    robocopy C:\Users\my name\Documents C:\Users\my name\Dropbox\PC1\Documents /mir >> c:\robocopybackup_%date:~-4,4%%date:~-10,2%%date:~-7,2%.log

    I tried adding the /XL Robocopy option to block the copy of these unwanted folders to my backup:

    robocopy C:\Users\my name\Documents D:\Dropbox\my name\Documents /XD "C:\Users\my name\Documents\My Music","C:\Users\my name\Documents\My Pictures","C:\Users\my name\Documents\My Videos" /mir >> c:\robocopybackup_%date:~-4,4%%date:~-10,2%%date:~-7,2%.log

    This did not help. Please tell me what to do.....

    Thank you!
     
    TWWade, Aug 29, 2023
    #3
  4. Eric Ber Win User

    robocopy output has duplicate documents folder

    Duplicate Documents Folders

    Hi Batya,

    Conflicts with the OneDrive settings on your computer is one of the possible reasons why you have duplicate document folders. For us to assist you better, kindly answer the following questions:

    • Have you made any changes to your computer prior to this issue?
    • What troubleshooting steps have you done so far?
    • Which Version and OS Build number of Windows 10 is currently installed? To check, press the Windows key, type winver, and press the Enter key.

    Meanwhile, you can try unlinking your OneDrive from your computer and re-activate it under a new and empty folder on your hard drive after you restart your device.

    Regards.
     
    Eric Ber, Aug 29, 2023
    #4
Thema:

robocopy output has duplicate documents folder

Loading...
  1. robocopy output has duplicate documents folder - Similar Threads - robocopy output has

  2. Duplicate "desktop", "documents", etc. folder

    in Windows 10 Software and Apps
    Duplicate "desktop", "documents", etc. folder: Why there seems to be another "documents", "desktop", etc. folders in my Data D:, and same folder names pinned in file explorer. It seems to be different since the "desktop" folder in Data D: seems to have some of the files and folder in my actual desktop, but whenever I...
  3. Duplicate Documents Folders - Both are Identical

    in Windows 10 Gaming
    Duplicate Documents Folders - Both are Identical: Hey there.Feel One Drive has been breaking my computer a little bit lately. Such an annoying backup app that creates so many silly problems. Anyway, that's a topic for another day.Now I've noticed I have duplicate Documents folders on my C: Both are the exact same. If I...
  4. robocopy output has duplicate documents folder

    in Windows 10 Software and Apps
    robocopy output has duplicate documents folder: Here's the ROBOCOPY command that I run to backup my documents folder to an external drive:ROBOCOPY C:\Users\ddd\Documents "%destdrive%:\xxx documents" /XF ~* *.tmp *.temp desktop.ini /E /XO /XJ /XJD /XJF /PURGE /NP /NDL "/LOG:C:\Users\ddd\Documents\ \robocopy logs\document...
  5. robocopy output has duplicate documents folder

    in Windows 10 Gaming
    robocopy output has duplicate documents folder: Here's the ROBOCOPY command that I run to backup my documents folder to an external drive:ROBOCOPY C:\Users\ddd\Documents "%destdrive%:\xxx documents" /XF ~* *.tmp *.temp desktop.ini /E /XO /XJ /XJD /XJF /PURGE /NP /NDL "/LOG:C:\Users\ddd\Documents\ \robocopy logs\document...
  6. Duplicate Documents folders

    in Windows 10 Gaming
    Duplicate Documents folders: I'm new to Windows 11 - old time #10 user. Why is there a "Documents" folder in my desktop display- the one that shows when i click on my Name folder in the upper LH of the desktop, and another under c:/user/me/Documents? They are not connected or synchronized....
  7. Duplicate Documents folders

    in Windows 10 Software and Apps
    Duplicate Documents folders: I'm new to Windows 11 - old time #10 user. Why is there a "Documents" folder in my desktop display- the one that shows when i click on my Name folder in the upper LH of the desktop, and another under c:/user/me/Documents? They are not connected or synchronized....
  8. Documents folder duplicated in Pictures folder

    in Windows 10 Network and Sharing
    Documents folder duplicated in Pictures folder: Documents folder duplicated in Pictures folder https://answers.microsoft.com/en-us/windows/forum/all/documents-folder-duplicated-in-pictures-folder/00af09ce-e789-4e17-b6bc-1385950e6eed
  9. Duplicate Folders in Documents Folder

    in Windows 10 Network and Sharing
    Duplicate Folders in Documents Folder: Somehow my wife's laptop a Dell Laptop running an up-to-date Windows 10 OS has gotten 2 same-named folders Very Active with important data in her Documents folder. I've tried several things to fix by deleting 1 of the duplicate folders, moving files , etc. but nothing has...
  10. Duplicated Documents and Pictures folders

    in Windows 10 Support
    Duplicated Documents and Pictures folders: I have discovered that I have two Documents and two Pictures folders: one of each is in "This PC" and one in "Windows (C)>Users>[my name]". They are not synced and I seem to have to copy files from one to the other to get them to show the same; if I don't I have problems...