Discussion Robocopy copies files where there were no changes

  • 20 Juni 2012 9:57
     
     
    I’ve set up Robocopy for backups to a USB drive stuck I my wireless router. The syntax used, in a .bat file, is:

    SET CopyFrom="C:\Users\Gene\My Documents"
    SET CopyTo="B:\My Notebook Backup"
    SET MyLog="C:\Robocopy Backup\RobocopyBackup.log"

    robocopy %CopyFrom% %CopyTo% /MIR /ZB /R:2 /W:4 /Tee /Log:%MyLog%

    Task Scheduler runs the bat file every night.

    There are 2 problems, perhaps related. First, every night the whole backup runs and takes about 2.5 hrs., rather than backing up just the files that were added or changed that day, which would take a lot less time.

    Second, the log file shows error 5 right at the end. The log states error 5, changing file attributes. B:\My Notebook Backup, access is denied. B is the drive letter for my wireless router. My Notebook Backup is the folder on the USB stick stuck in the router where backups are directed to by the syntax above.

    How do I get Robocopy to backup only files changed or added each day instead of re-copying all files and folders each day?
    The computer runs Windows 7 64 bit. The USB stick was reformated as NTFS.

Semua Balasan

  • 23 Juni 2012 3:43
    Moderator
     
     
    Hi,

    Based my knowledge and research, we may not be able to achieve your requirement via Robocopy commands. It can excludes changed files not includes.

    Please refer to this.

    For access denied issue, please ensure the right NTFS permission of “B:\My Notebook Backup”.

    Kim Zhou

    TechNet Community Support

  • 23 Juni 2012 8:50
     
     
    "Kim Zhou" wrote in message news:dadff231-b691-4149-a4e8-dafd04df5bd0...
    Hi,

    Based my knowledge and research, we may not be able to achieve your requirement via Robocopy commands. It can excludes changed files not includes.

    Please refer to this.

    For access denied issue, please ensure the right NTFS permission of “B:\My Notebook Backup”.

    Kim Zhou

    TechNet Community Support

     
     
    ?? - That's an OWA document, Kim?
    is there a public version?
     

    Noel Paton | Nil Carborundum Illegitemi | CrashFixPC | The Three-toed Sloth
  • 23 Juni 2012 8:53
     
     
    "Kim Zhou" wrote in message news:dadff231-b691-4149-a4e8-dafd04df5bd0...
    Hi,

    Based my knowledge and research, we may not be able to achieve your requirement via Robocopy commands. It can excludes changed files not includes.

    Please refer to this.

    For access denied issue, please ensure the right NTFS permission of “B:\My Notebook Backup”.

    Kim Zhou

    TechNet Community Support

     

     
     
     
    Ah  - never mind - here's the corrected link :)

    Noel Paton | Nil Carborundum Illegitemi | CrashFixPC | The Three-toed Sloth
  • 24 Juni 2012 15:19
     
     

    Thank you for the responses. The problem is the permissions for the B drive, which is my wireless router. The USB stick, when attached directly to the PC shows Full Control. But in the router Special Permissions is checked and greyed. Checking Full Control to Everyone, or any of the other 2 choices, gives an Access Is Denied message.  I cannot figure out how to overcome that issue. If I could, file attributes could be set and read, and the problem solved. Do you know how to gain Full Control of a stubborn wireless drive?

  • 24 Juni 2012 15:39
     
     
    "G O" wrote in message news:915ab694-28f5-423a-8dc6-5c608ecf1287...

    Thank you for the responses. The problem is the permissions for the B drive, which is my wireless router. The USB stick, when attached directly to the PC shows Full Control. But in the router Special Permissions is checked and greyed. Checking Full Control to Everyone, or any of the other 2 choices, gives an Access Is Denied message.  I cannot figure out how to overcome that issue. If I could, file attributes could be set and read, and the problem solved. Do you know how to gain Full Control of a stubborn wireless drive?

    Try connecting it locally, and making Everyone the Owner, and assigning Full permissions to Everyone, then set the inherit permissions option..
     
     

    Noel Paton | Nil Carborundum Illegitemi | CrashFixPC | The Three-toed Sloth
  • 24 Juni 2012 16:20
     
     

    I do not know what you mean by "connecting it locally." Please explain.

    Thank you.

  • 24 Juni 2012 16:33
     
     
    "G O" wrote in message news:e79c7234-cc3a-4b33-b4b9-6ec121face05...

    I do not know what you mean by "connecting it locally." Please explain.

    Thank you.

    Use a USB port on the computer - I'm assuming that the drive is connected via a USB port to the router?
     

    Noel Paton | Nil Carborundum Illegitemi | CrashFixPC | The Three-toed Sloth
  • 24 Juni 2012 17:12
     
     
    The computer is a notebook computer. It would loose it's portability if I hard wired it to the router. The router is currently hard wired to a desk top PC.
  • 24 Juni 2012 17:18
     
     
    Once you have the permissions adjusted, you can move it back to it's normal position for testing.

    Noel Paton | Nil Carborundum Illegitemi | CrashFixPC | The Three-toed Sloth

  • 11 September 2012 14:00
     
     

    I don't know if you've found the solution, but this might help.

    I also have the same problem when robocopy keeps copying unchanged files.  I've tried many other suggestion regarding changing permission, LAN authentication, etc, but none of them had worked for me.

    My fix is to simply use the /FFT option - assume FAT File Times (2-second granularity).

    - Hoang