How to Schedule Robocopy for Automated Backups in Windows

Once you’ve mastered Robocopy commands and switches, the next step is automation.

For an IT professional, running backups manually isn’t an option.

In this guide, I’ll show you how to set up the Windows Task Scheduler to run your Robocopy .bat scripts silently and reliably.

1. Preparing your .bat file

@echo off :: Daily Backup Example 
robocopy "C:\Source" "D:\Destination" /E /MIR /MT:8 /R:5 /W:10 /LOG:C:\logs\backup.log exit

2. Task Scheduler Configuration

  1. Open Task Scheduler from the Start menu.
  2. Select Create Basic Task.
  3. Name it “Daily Robocopy Backup” and set your trigger (Daily or Weekly).
  4. Under Action, choose “Start a program.”
  5. Browse and select your .bat file.
  6. In the “Start in” field, paste the directory path where your script is located to prevent execution errors.

💡 Pro Admin Tip: In the task settings, select “Run whether user is logged on or not” and check “Run with highest privileges.”

This ensures the backup runs even if the server is at the login screen.

Leave a Comment