Robocopy not copying My Document files

Page 1 of 2 12 LastLast

  1. Posts : 33
    Microsoft Windows 7 Home Premium 64-bit 1-Pack for System Builders - OEM
       #1

    Robocopy not copying My Document files


    Hi, I just started using Robocopy to backup my files to my JBOD recently and I noticed that it does not copy anything in My Document folder. Here is the result log for Robocopy regarding the backup.
    ------------------------------------------------------------------------------

    Total Copied Skipped Mismatch FAILED Extras
    Dirs : 4287 0 4287 0 0 0
    Files : 34164 22831 11333 0 0 0
    Bytes : 107.783 g 90.408 g 17.375 g 0 0 0
    Times : 20:32:46 2:02:26 0:00:00 0:15:26

    Ended : Mon Sep 08 02:58:21 2014

    -------------------------------------------------------------------------------
    Even though it says that it copied 22831 files the destination folder says it has not been modified at all.



    The strange thing is that when I was checking back on the progress in the cmd window, it showed that it was copying files. The problem is I have no idea where those files went, the files that were supposedly copied aren't there at all. Here is the script I used to back up my files.

    robocopy F:\Anime G:\Anime /mir /copyall /np /tee /mt /log:"C:\Users\C.C\Desktop\my_backup_log.txt"

    robocopy "E:\Disk Backups" "G:\Disk Backups" /mir /copyall /np /tee /mt /log+:"C:\Users\C.C\Desktop\my_backup_log.txt"

    robocopy E:\Downloads G:\Downloads /mir /copyall /np /tee /mt /log+:"C:\Users\C.C\Desktop\my_backup_log.txt"

    robocopy E:\Movie G:\Movie /mir /copyall /np /tee /mt /log+:"C:\Users\C.C\Desktop\my_backup_log.txt"

    robocopy "C:\Users\C.C\My Documents" "G:\My Documents" /mir /copyall /np /tee /mt /log+:"C:\Users\C.C\Desktop\my_backup_log.txt"

    robocopy E:\Text G:\Text /mir /copyall /np /tee /mt /log+:"C:\Users\C.C\Desktop\my_backup_log.txt"

    pause
    The other folders seem to have been mirrored correctly, it's just the My Documents folder that is having this issue.

    Edit - I tried deleting the folder I currently had on the backup disk and ran robocopy again. It skipped right through the document script. It seems like it's saving somewhere but I don't know where. Here is the result.

    ------------------------------------------------------------------------------

    Total Copied Skipped Mismatch FAILED Extras
    Dirs : 4287 0 4287 0 0 0
    Files : 34163 0 34163 0 0 0
    Bytes : 107.783 g 0 107.783 g 0 0 0
    Times : 0:03:11 0:00:00 0:00:00 0:03:11

    Ended : Mon Sep 08 09:51:19 2014

    -------------------------------------------------------------------------------
    Last edited by CC123; 08 Sep 2014 at 09:00.
      My Computer


  2. Posts : 21,004
    Desk1 7 Home Prem / Desk2 10 Pro / Main lap Asus ROG 10 Pro 2 laptop Toshiba 7 Pro Asus P2520 7 & 10
       #2

    CC mate I don't understand the Robocopy stuff and personally I use the Macrium for back up / imaging it is free and so easy to use.
    Just a suggestion to get you out of strife:)
    Imaging with free Macrium
      My Computer


  3. Posts : 33
    Microsoft Windows 7 Home Premium 64-bit 1-Pack for System Builders - OEM
    Thread Starter
       #3

    I've tried using macrium before but it just doesn't fit my needs. I don't need a whole image of my computer, but rather just certain directories I know I want to keep safe.
      My Computer


  4. Posts : 1,049
    Windows 7 Pro 32
       #4

    Have you tried with only Documents instead of "My Documents"? That's what you see if you open a command prompt in your user folder and run a dir.
      My Computer


  5. Posts : 33
    Microsoft Windows 7 Home Premium 64-bit 1-Pack for System Builders - OEM
    Thread Starter
       #5

    Tookeri said:
    Have you tried with only Documents instead of "My Documents"? That's what you see if you open a command prompt in your user folder and run a dir.
    That doesn't work either, it started copying to a folder called Documents. I did find out where it started saving the files though.



    For some reason it created the My Documents and Documents directories which can only be seen through cmd with dir /a. I tried removing but I'm getting a "The directory is not empty" error. Anyone know a way to get rid of them?
      My Computer


  6. Posts : 1,049
    Windows 7 Pro 32
       #6

    Use attrib documents to see what attributes are set.

    Use del documents /S /Q to delete all files incl. sub folders. Note that /Q skips the "Are you sure" prompt

    Then use the rmdir /s command to delete the empty folders
      My Computer


  7. Posts : 21,004
    Desk1 7 Home Prem / Desk2 10 Pro / Main lap Asus ROG 10 Pro 2 laptop Toshiba 7 Pro Asus P2520 7 & 10
       #7

    CC123 said:
    I've tried using macrium before but it just doesn't fit my needs. I don't need a whole image of my computer, but rather just certain directories I know I want to keep safe.
    Ok no probs I only suggested as I do image every week on my main machines for peace of mind.

    I don't know much about t as I said but did see this if it is of any help
    Robocopy
      My Computer


  8. Posts : 4,776
    Microsoft Windows 7 Home Premium 64-bit 7601 Multiprocessor Free Service Pack 1
       #8

    Suggestion


    Well personally I'd use XCOPY instead of ROBOCOPY. Maybe you could try this:

    Create a folder in your G drive and name it Documents.

    Open an Elevated Command Prompt

    In the window that opens type (include the spaces)

    xcopy "C:\Users\C.C\Documents" G:\Documents /c /d /h /i /k /q /r /s /x /y >> "C:\Users\C.C\Desktop\my_backup_log.txt."

    Note Documents not My Documents.

    Or if you prefer Enable Copy & Paste in Command Prompt and just copy the selected text by right clicking in the command prompt window.

    If it works for you - you can save this script as a batch file and "Run as administrator" to run your backup. You'd need to modify it to include the other lines that you need.
    Last edited by Callender; 08 Sep 2014 at 12:22. Reason: add info
      My Computer


  9. Posts : 1,049
    Windows 7 Pro 32
       #9

    A 7 tutorial here: ROBOCOPY - Create Backup Script
      My Computer


  10. Posts : 4,776
    Microsoft Windows 7 Home Premium 64-bit 7601 Multiprocessor Free Service Pack 1
       #10

    Tutorial


    Tookeri said:
    Nice! :)
      My Computer


 
Page 1 of 2 12 LastLast

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

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