Robocopy

munruss

Golden Member
May 4, 2001
1,104
0
76
Hey everyone! I am attempting to create a batch file to copy backed up files from one drive to another. I would like to batch file to run as a scheduled task. Here are the issues I am having:

1) The batch file does not run under a schedule task in Windows 7 Pro.
2) When I run the batch file manually, the batch file deleted other folders in the directory.

Here is the batch file:
robocopy S:\Backups E:\Backups\Laptop\LAPTOP\Nadia Pictures /e /mir /np /log:backup_log.txt

I would like my batch file to over write existing files in the directory and run as a schedule task.

I am using EaseUS TODO backup software, so all that is being copied are .PBD files. I'm using Robocopy to copy the .PBD files from a network directory to an external hard drive.

Thank you very much.

Moved to Software for Windows.
Markbnj
Programming mod
 
Last edited by a moderator:

Binky

Diamond Member
Oct 9, 1999
4,046
4
81
The MIR switch deletes everything in the destination that does not exist in the source. That's a useful switch, but it can be dangerous. You probably don't want to use that.

I suggest you try out puresync. It's a free utility that can run on a schedule and do exactly what you are asking.