If you're using Windows 10 or Windows 11, you might want to back up certain folders regularly.
Here we will show you how to use Windows functions to automatically back up a specified folder at a specified time every day.
How to automatically back up a specified folder at a specified time every day
To perform automatic backups on a regular basis, create a task using the Windows Task Scheduler function and copy files using robocopy.
For more information about "robocopy," please see the official Microsoft page.
Creating a Basic Task
1. Press Windows key + R to open Run, type "taskschd.msc" and click OK.
2. The Task Scheduler will open, so click "Create Basic Task" on the right.
3. Enter an easy-to-understand name such as "Automatic Backup" in the "Name" field.
4. In the "Description" section, it's a good idea to enter what you will do specifically.
5. For "Task Trigger," we will back up daily, so check "Daily" and proceed to the next step.
6.① Set the time (23pm in this example).
7.② Set the interval to "1 day" and click Next.
8. Select "Start a program" and click Next.
9.① Enter "robocopy" in "Program/script".
10.② In "Add Factors (Optional)", enter "Source: Half-width space, Destination: Half-width space/e".
By adding the /e option, empty subdirectories of the source directory will also be copied.
For example, copy the entire contents of the "C:\Users\test2\Desktop\Test" folder into the "F:\Daily Backup" folder.
"C:\Users\test2\Desktop\テスト" "F:\毎日バックアップ" /e
*When copying using "robocopy," if the same file name already exists in the destination, it will be overwritten.
If you want to copy the entire "Test" folder, add the same folder name as the destination folder, as follows:
"C:\Users\test2\Desktop\テスト" "F:\毎日バックアップ\テスト" /e
11. When you proceed to the next step, the final confirmation screen will appear. Check the details and click "Finish."
Now that the task has been added, the backup will be performed automatically every day at 23pm.









Comment: