Windows 10: Robocopy infinite recursion

Discus and support Robocopy infinite recursion in Windows 10 Network and Sharing to solve the problem; Hi, I upgraded from Windows 7 to Windows 10 2 weeks ago. I have been using Robocopy for years to backup my system. However, since I upgraded,... Discussion in 'Windows 10 Network and Sharing' started by Jmac150, Dec 9, 2018.

  1. Jmac150 Win User

    Robocopy infinite recursion


    Hi,

    I upgraded from Windows 7 to Windows 10 2 weeks ago.

    I have been using Robocopy for years to backup my system. However, since I upgraded, Robocopy goes into a seemingly infinite loop, when backing up via the Documents and Settings Junction.

    I have not changed the permissions on this folder, nor on the C:Users\[user]\AppData\Local\Application Data folder which is also involved.

    If I show Operating System folders and try to open these folders, I get "Access Denied", as I would expect.


    If I use the /XJ option in Robocopy, I will not be able to back up via junctions that I have set up to access data on a separate data drive.


    What's the problem?


    Thanks

    :)
     
    Jmac150, Dec 9, 2018
    #1
  2. Bree Win User

    Anyone familair with robocopy?


    I use RoboCopy in a batch file to backup my user folder. There's a couple of pitfalls to be aware of. You've already found the 'retries' one. The default is a million retries waiting 30 seconds between each (that's nearly a year!). NTUser.dat was the file that it caught me out on. There's some switches to deal with that...
    ...I skip locked files with /R:0 (which would probably have fixed your 'System Volume Information' problem too).

    The other problem I had was an infinite recursion (well, until the maximum path length was exceeded) of particular folders on the destination drive. These were caused by what look like links to 'My Music', 'My Pictures', etc. in the Documents folder. They're not links, they are Junction Points, there's a switch to deal with that too.
    Type RoboCopy /? for the full list.
     
    Bree, Dec 9, 2018
    #2
  3. klepp0906 Win User
    Anyone familair with robocopy?


    lol this may be helpful. Might be able to point me back to my original method. Nothing ventured nothing gained they say. If nothing else im learning and thats always a win when you have a terroristic toddler interrupting your "alone" time every 90 seconds ;p
     
    klepp0906, Dec 9, 2018
    #3
  4. Sonam Jim Win User

    Robocopy infinite recursion

    Source Path Too Long bug in Windows 10

    I totally agree: In other threads, this problem has come up because robocopy follows junctions and links, and MS, in their infinite wisdom, chose to create (or perpetuate from windowss 7 & 8) a link in User AppData\Local named 'Application Data' (which,
    BTW, ordinary users cannot remove) which points to the parent directory it is in (..\..\AppData). Robocopy, by default, follows junctions and symbolic links, which leads to a disk sucking infinite recursive creation of nested 'AppData; folders.

    Sad! Fail!

    The best cure to not have this happen would be to set default robocopy options:

    • /XJ XJ excludes all junction points (which is what the Application Data link is)
    • /256 exclude > 256 character file path support. This will prevent the copy from happening in the first place.
     
    Sonam Jim, Dec 9, 2018
    #4
Thema:

Robocopy infinite recursion

Loading...
  1. Robocopy infinite recursion - Similar Threads - Robocopy infinite recursion

  2. Robocopy con OneDrive

    in Windows 10 Network and Sharing
    Robocopy con OneDrive: I am trying to backup a directory containing my Bridge program from USB "E:" unit to OneDrive with robocopy "Bridge" "V:" /E /V /XO /NP /R:10 /W:30 or robocopy "E:\Bridge" "V:" /E /V /XO /NP /R:10 /W:30 It works the first time: all files got copied to my OneDrive It...
  3. Automatically Create Shortcuts - Search Recursively

    in Windows 10 Network and Sharing
    Automatically Create Shortcuts - Search Recursively: Hi All, Folder structure: A\Stuff A\Temp B\Stuff B\Temp C\Stuff C\Temp D\Stuff D\Temp F\ What I want to do is script something that creates a shortcut for any files located in *\Stuff and create a shortcut that gets placed into F\ Thanks in advance...
  4. Robocopy

    in Windows 10 Customization
    Robocopy: I like Robocopy and used it for a long time but after upgrading from Windows 7 to Windows 10, it got in a loop when I tried to back up via the Documents and Settings Junction. I know that I didn’t change permissions on this folder. But If I try to open it, I get "Access...
  5. Anyone familair with robocopy?

    in Windows 10 Support
    Anyone familair with robocopy?: let me explain what im trying to do. I have a ton of data sequestered on different hard drives (apart from my system drive) and this obviously helps me have data backed up and helps me when/if i need to format by saving a tremendous amount of time. Unfortunately due to...
  6. Robocopy and /ETA switch

    in Windows 10 Support
    Robocopy and /ETA switch: I have a few batch scripts to backup or restore files, and for some of them, I have the /ETA switch in them as they will move some larger files. In W7, It would always give the time to transfer, but in Win10 (x64), this switch doesn't seem to do anything. When I do Robocopy...
  7. another robocopy inquiry >.<

    in Windows 10 Support
    another robocopy inquiry >.<: anyone tell me why this isnt working? robocopy "C:\Users\klepp\AppData\Local\Plex Media Server" "U:\Backups\Plex Media Server\AppData\Local" /e /xo /purge /xd "System Volume Information" "$RECYCLE.BIN" "Recovery" trying to take my plex media server folder that has all...
  8. DISMHOST.exe is recursively recreating itself

    in Windows 10 Support
    DISMHOST.exe is recursively recreating itself: Dismhost.exe is recreating itself and and new folder about every 5 minutes while the machine is idle/asleep. Each of these new folders in \users\me\AppData\local\temp\... and contains about 2 dozen files and a copy of dismhost.exe. To the tune of about 2 gigs an hour. The...
  9. Using RoboCopy

    in Windows 10 Support
    Using RoboCopy: I'm trying to use RoboCopy to backup my data files to a USB stick and External HDD. I created a folder in each destination called DataBackup and run the following command. robocopy "d:\datafiles" "e:\databackup /e Problem is it doesn't copy to that folder. It simply...
  10. Robocopy exclude

    in Windows 10 Support
    Robocopy exclude: Hello everyone, How do I exclude System Volume Information in Robocopy Windows 10? I tried XD\ "System Volume Information" "$Recycle.bin" System Volume Information doesn't work. Recycle.bin does. Don Cole 105420

Users found this page by searching for:

  1. robocopy link recursive xj