Even with the automation the DOS prompt and robocopy
bring to the file duplication process, it would stil be nice if the computer performed that task for you, automatically and on a schedule. In Windows, that chore falls to the Task Scheduler program.
Step 3. Configure the Task Manager to automatically backup
My guess is that Microsoft made the Windows Task Scheduler the most difficult, cumbersome, and obnoxious program for a reason. They don’t want you to use it! Ever!
Bear with me.
First, open the Task Scheduler program:
- Press Win+R to summon the Run dialog box.
- Type
taskschd.msc /s
The next step is to create your own task library folder, assuming that you don’t already have one. That’s probably because you’ve never read my book Troubleshooting & Maintaining Your PC All-In-One Desktop Reference For Dummies (whew!), which describes how this process works.
- Right-click on the Task Scheduler Library folder, found on the left side of the Task Scheduler window.
- Choose the New Folder command from the shortcut menu.
- Type
My Tasks
or some similar name to identify a new folder that contains only your personal tasks. - Click the OK button. The new folder appears beneath the Task Scheduler Library folder.
- Choose the new folder you created.
The folder is designed to hold only your personal tasks. It isn’t necessary to create such a folder, but I’m all about organization and blah-blah-blah.
The next step is to create the manual backup task within that folder.
Assuming that the Task Scheduler is still on the screen, and your personal task folder is selected, proceed with these steps:
- From the right side of the screen, in the Actions area, choose Create Basic Task. You need to run a Wizard to help you create a simple task.
- Into the Name field type
Daily Backup
- Click the Next button.
- Choose Daily, then click the Next button.
- Select the Start date, which should be today.
- Choose a Start time, which should be later than this instant. Remember that the computer must be on for a task to run.
- Ensure that the number 1 is in the Recur Every field.
- Click the Next button.
- Choose Start A Program, then click the Next button.
- Into the Program/Script box type
robocopy
- Into the Add Arguments box, type the rest of the
robocopy
command; refer to Wednesday’s blog post for the specifics. On my computer, I typeC:\Users\Dan\Documents\Work F:\backup /mir /r:1
- Click the Next button.
- Click the Finish button.
- Close the Task Scheduler window.
You’re done creating the task. It’s named Daily Backup (or whatever name you’ve chosen). It runs every day at the time you’ve specified. The time I chose was 11:50 pm. Therefore, assuming the computer obeys the Task Scheduler, and that your PC is on at that time, at 11:50 pm, every day, robocopy
maintains a duplicate of your files on a thumb drive.
How do you know whether the task completed? Well, you can check the thumb drive to verify that the files were copied and updated. Or you can direct the Task Scheduler to display a message on the screen. I’ll show you how that’s done on Monday.