Something seems wrong in my file structure


  1. Posts : 17
    Windows 10 Professional
       #1

    Something seems wrong in my file structure


    Using robocopy to back up my boot drive I got literally thousands of errors like this

    2020/04/02 05:15:05 (0x00000020) Copying File C:\Users\devon\AppData\Local\Application Data\Application Data\Application Data\Application Data\Application Data\Application Data\Application Data\Application Data\Application Data\Application Data\Application Data\Application Data\Application Data\Packages\Microsoft.Windows.Cortana_cw5n1h2txyewy\AppData\Indexed DB\IndexedDB.edb - In Use

    2020/04/02 05:28:49 (0x00000020) Copying File C:\Documents and Settings\devon\AppData\Local\Application Data\Application Data\Application Data\Application Data\Application Data\Application Data\Application Data\Application Data\Application Data\Application Data\Application Data\Application Data\Application Data\Application Data\Application Data\Application Data\Temp\5BE0CFDF-C39A-4EA1-877B-CDEFBD8C6476.scratch\lock - In Use

    2020/04/02 05:41:50 (0x00000005) Copying File C:\ProgramData\Application Data\Application Data\Application Data\Application Data\Application Data\Application Data\Application Data\Application Data\Application Data\Application Data\Application Data\Application Data\Application Data\Application Data\Application Data\Application Data\Application Data\Microsoft\Crypto\RSA\MachineKeys\10665c24f03ecaf7a750c2ba071a649e_e88cfa2f-584c-4e43-a216-bcd1de4ba3f2 - Denied

    Seems impossible that those paths should exist and I certainly didn't create them. Explorer refuses to let me look - Access Denied - Could it be a damaged Junction or Link ? Fixable ?
      My Computer


  2. Posts : 6,856
    22H2 64 Bit Pro
       #2

    You've taken ownership off appdata when you should not have.

    Check Posts #18. #19 & #20 in this thread and see if that helps.

    I messed up folder ownership off Appdata
      My Computer


  3. Posts : 6,856
    22H2 64 Bit Pro
       #3
      My Computer


  4. Posts : 43,026
    Win 10 Pro (22H2) (2nd PC is 22H2)
       #4

    First there are parts of the O/S that are protected for your own benefit. It seems you may have tried to defeat that.

    Second, trying to copy the O/S will inevitably mean you could run in to various conflicts as the files will be in use.

    Third, I don't see the point of trying to copy all the O/S in this way.

    Disk imaging is designed to create a compressed copy of the used parts of a partition, and is designed to do that for the O/S too using a mechanism designed for that.

    Rather than trying what you're doing, use disk imaging- designed for the job. E.g. Macrium Reflect (free- paid).
      My Computers


  5. Posts : 31,692
    10 Home x64 (22H2) (10 Pro on 2nd pc)
       #5

    Devon Nullman said:
    Using robocopy to back up my boot drive I got literally thousands of errors like this...
    ...Seems impossible that those paths should exist and I certainly didn't create them. Explorer refuses to let me look - Access Denied - Could it be a damaged Junction or Link ? Fixable ?
    Robocopy will copy the junction as if it is a folder and will create a coresponding folder in the destination. And if the folder the junction points to also contains junction points it may lead to a path that loops to infinity, or at least until the maximum path length is exceeded for the destination.

    I hit the same problem when I wrote a batch file to use Robocopy to back up my user folder (including my appdata folder). The cure was to add the /XJD option to the command line. Type Robocopy /? for help.

    ::
    :: File Selection Options :
    ::

    /XJD :: eXclude Junction points and symbolic links for Directories.


    I use my batch file to perform an incremental back up of my user files twice a week, and a full backup once a month. This is in addition to my routine monthly Macrium system image. Should I need to restore a Macrium system image, then the few (if any) more recent user files can be added from the Robocopy backups.
    Last edited by Bree; 02 Apr 2020 at 14:34.
      My Computers


  6. Posts : 17
    Windows 10 Professional
    Thread Starter
       #6

    Bree said:
    Robocopy will copy the junction as if it is a folder and will create a coresponding folder in the destination. And if the folder the junction points to also contains junction points it may lead to a path that loops to infinity, or at least until the maximum path length is exceeded for the destination.

    I hit the same problem when I wrote a batch file to use Robocopy to back up my user folder (including my appdata folder). The cure was to add the /XJD option to the command line. Type Robocopy /? for help.

    ::
    :: File Selection Options :
    ::

    /XJD :: eXclude Junction points and symbolic links for Directories.


    I use my batch file to perform an incremental back up of my user files twice a week, and a full backup once a month. This is in addition to my routine monthly Macrium system image. Should I need to restore a Macrium system image, then the few (if any) more recent user files can be added from the Robocopy backups.
    I used /XJ which I thought was to exclude all junction points (both files and folders) - Am I wrong ?

    robocopy "C:" "L:\Drive_C" /R:0 /W:0 /NS /NC /NFL /NDL /XJ /E /MOT:5 /MT:8 /XD "*Backups*" "*$RECYCLE.BIN*" "*System Volume Information*"
    I use both Macrium and Acronis weekly - I am creating a Front-end for robocopy and this was just part of its testing. No junction points were copied, just a bunch of errors. I confirmed using cmd that they are nested I was able to get here:

    Using cmd this is as far as it goesC:\Users\devon\AppData\Local\Application Data\Application Data\Application Data\Application Data\Application Data\Application Data\Application Data\Application Data\Application Data\Application Data\Application Data\Application Data\Application Data\Application Data\Application Data\Application Data\Application Data\Application Data\Application Data\Application Data\Application Data\Application Data\Application Data\Application Data\Application Data\Application Data\Application Data\Application Data\Application Data\Application Data\Application Data>trying again gives:"The name of the file cannot be resolved by the system."
    I have not touched any Security settings
      My Computer


  7. Posts : 31,692
    10 Home x64 (22H2) (10 Pro on 2nd pc)
       #7

    Devon Nullman said:
    I used /XJ which I thought was to exclude all junction points (both files and folders) - Am I wrong ?
    I found I needed to use /XJD. This is the problem: My user is named Owner and in my user's appdata\local folder is a junction named 'Application Data'.

    That junction points to my user's appdata\local folder which contain the Application data junction, which points to my user's appdata\local folder which contain the Application data junction, which...... well.... we could follow this loop forever ... and that's just what Robocopy does.

    Something seems wrong in my file structure-image.png
      My Computers


 

  Related Discussions
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 04:54.
Find Us




Windows 10 Forums