Robocopy backup for personal folders


  1. Posts : 3
    windows 7 home premium 64 bit
       #1

    Robocopy backup for personal folders


    I have created a batch file for copying my Documents folder to an external hard drive:

    robocopy C:\Users\USERNAME\Documents J:\Desktop-Backup\Documents /copyall /e /LOG+:c:\users\USERNAME\documents\backuplog.txt
    The log file shows that it is backing up C:\users\USERNAME\documents\My Music and C:\users\USERNAME\documents\My Pictures.
    That's fine, because I want those backed up anyway, but when I go to J:\desktop-backup\Documents, the Music and Pictures folders aren't there (or anywhere else on the J: drive).
    I have "view hidden files and folders" turned on. It seems that the files are actually there because my Documents folder is only 700MB, yet several GB have been taken up on the J: drive.
    Anyone have any thoughts?
    Thanks.
    Last edited by choopy; 03 Mar 2012 at 21:40.
      My Computer


  2. Posts : 19,383
    Windows 10 Pro x64 ; Xubuntu x64
       #2

    Hi,

    Can you re-write your post and use some punctuation and paragraphing to make it easier to read please? I'm having a hard time working out your robocopy command lines.

    See if this will help you:

    ROBOCOPY - Create Backup Script

    Regards,
    Golden
      My Computer


  3. Posts : 3
    windows 7 home premium 64 bit
    Thread Starter
       #3

    Hi,

    Thanks for the quick response. I added a few paragraph breaks, put the code in a quote tag, and removed an irrelevant part of the code.
    The problem isn't with the code so much, as it is with the Win7 file system thinking that My Music, My Pictures and My Videos are located inside of the Documents folder, but then not displaying them at the backup destination.
    Thanks
      My Computer


  4. Posts : 19,383
    Windows 10 Pro x64 ; Xubuntu x64
       #4

    Hi,

    Presumably you are replacing USERNAME with the actually users name in the command line?

    Also, is My Music and My Pictures libraries? Do you have another location on C: that holds your music and photo's?

    Regards,
    Golden
      My Computer


  5. Posts : 3
    windows 7 home premium 64 bit
    Thread Starter
       #5

    You presume correctly.
    I guess they're libraries? When you click start and click Documents, Pictures or Music, that's the folders that I put them into.
      My Computer


 

  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 16:24.
Find Us