Windows 10: Robocopy: copy drive root directory results in hidden backup folder

Discus and support Robocopy: copy drive root directory results in hidden backup folder in Windows 10 Network and Sharing to solve the problem; Windows 10 Home 21H2 19044.1526, 64-bit Robocopy 10.0.19041.1266 Run Robocopy via .bat file, Run as Administrator. Hello: When I use Robocopy to copy... Discussion in 'Windows 10 Network and Sharing' started by franklin-xy, Feb 17, 2022.

  1. Robocopy: copy drive root directory results in hidden backup folder


    Windows 10 Home 21H2 19044.1526, 64-bit Robocopy 10.0.19041.1266 Run Robocopy via .bat file, Run as Administrator. Hello: When I use Robocopy to copy the root directory of a drive D: to a folder non-root directory on an external drive, the resulting destination folder is Hidden. I believe that's because the root drive has System and Hidden attributes. How can I prevent System and Hidden attributes from being applied to the destination folder? My testing I removed options for multi-threads, retries, logging, etc., to make it easier for you folks to read.: SET options=/MIR /A-:RSHA /XA

    :)
     
    franklin-xy, Feb 17, 2022
    #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, Feb 17, 2022
    #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, Feb 17, 2022
    #3
  4. Robocopy: copy drive root directory results in hidden backup folder

    Robocopy Error 2 - copyying folder in dropbox

    I have successfully created and used the following batch file in windows10

    robocopy C:\Users\Julie\Documents\Test C:\Users\Julie\Documents\accounts-backup
    pause

    However when I run the batch below to copy the contents of a folder in Dropbox I get

    ERROR 2 (0x00000002) Accessing Source Directory C:\Users\Julie\Dropbox\accounts\
    The system cannot find the file specified.

    robocopy C:\Users\Julie\Dropbox\accounts C:\Users\Julie\Documents\accounts-backup
    pause

    Any suggestions to resolve this
     
    ColinKinsella, Feb 17, 2022
    #4
Thema:

Robocopy: copy drive root directory results in hidden backup folder

Loading...
  1. Robocopy: copy drive root directory results in hidden backup folder - Similar Threads - Robocopy copy drive

  2. Why robocopy only copy directories but not files?

    in Windows 10 Network and Sharing
    Why robocopy only copy directories but not files?: I've tried robocopy to directories of programs, However, when I see the consequences, only directories were copied but program files weren't copied. But when I pick exe files to copy, then it is copiedWhy is that, and is there any way to solve this?Here is the command I...
  3. Why robocopy only copy directories but not files?

    in Windows 10 Gaming
    Why robocopy only copy directories but not files?: I've tried robocopy to directories of programs, However, when I see the consequences, only directories were copied but program files weren't copied. But when I pick exe files to copy, then it is copiedWhy is that, and is there any way to solve this?Here is the command I...
  4. Why robocopy only copy directories but not files?

    in Windows 10 Software and Apps
    Why robocopy only copy directories but not files?: I've tried robocopy to directories of programs, However, when I see the consequences, only directories were copied but program files weren't copied. But when I pick exe files to copy, then it is copiedWhy is that, and is there any way to solve this?Here is the command I...
  5. ROBOCOPY fails copying files from source root

    in Windows 10 Gaming
    ROBOCOPY fails copying files from source root: When copying files from source root, it seems that ROBOCOPY see the files as directories and the resoult is, that the filename become a directoiry name on targetHow can I prevent thatMy code:$FileName = Get-Date.tostring"MM-dd-yyyy---HH-mm-ss"$oldpaths = Get-ChildItem...
  6. Robocopy: copy drive root directory creates hidden backup folder

    in Windows 10 Gaming
    Robocopy: copy drive root directory creates hidden backup folder: Windows 10 Home 21H2 19044.1526, 64-bit Robocopy 10.0.19041.1266 Run Robocopy via .bat file, Run as Administrator. Hello: When I use Robocopy to copy the root directory of a drive D: to a folder non-root directory on an external drive, the resulting destination folder is...
  7. Robocopy: copy drive root directory creates hidden backup folder

    in Windows 10 Software and Apps
    Robocopy: copy drive root directory creates hidden backup folder: Windows 10 Home 21H2 19044.1526, 64-bit Robocopy 10.0.19041.1266 Run Robocopy via .bat file, Run as Administrator. Hello: When I use Robocopy to copy the root directory of a drive D: to a folder non-root directory on an external drive, the resulting destination folder is...
  8. Robocopy: copy drive root directory creates hidden backup folder

    in Windows 10 Network and Sharing
    Robocopy: copy drive root directory creates hidden backup folder: Windows 10 Home 21H2 19044.1526, 64-bit Robocopy 10.0.19041.1266 Run Robocopy via .bat file, Run as Administrator. Hello: When I use Robocopy to copy the root directory of a drive D: to a folder non-root directory on an external drive, the resulting destination folder is...
  9. Robocopy: copy drive root directory results in hidden backup folder

    in Windows 10 Gaming
    Robocopy: copy drive root directory results in hidden backup folder: Windows 10 Home 21H2 19044.1526, 64-bit Robocopy 10.0.19041.1266 Run Robocopy via .bat file, Run as Administrator. Hello: When I use Robocopy to copy the root directory of a drive D: to a folder non-root directory on an external drive, the resulting destination folder is...
  10. Robocopy: copy drive root directory results in hidden backup folder

    in Windows 10 Software and Apps
    Robocopy: copy drive root directory results in hidden backup folder: Windows 10 Home 21H2 19044.1526, 64-bit Robocopy 10.0.19041.1266 Run Robocopy via .bat file, Run as Administrator. Hello: When I use Robocopy to copy the root directory of a drive D: to a folder non-root directory on an external drive, the resulting destination folder is...