20 Juni 2012 9:57I’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.
23 Juni 2012 3:43ModeratorHi,
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”.
TechNet Community Support
23 Juni 2012 8:50
23 Juni 2012 8:53Ah - 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
24 Juni 2012 16:20
I do not know what you mean by "connecting it locally." Please explain.
24 Juni 2012 16:33
24 Juni 2012 17:12The 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
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).