How to automatically back up your Microsoft Edge profile on a regular basis

This time, we will show you how to automatically back up your Microsoft Edge profile on a regular basis in Windows 10 or Windows 11.

Your Edge profile is always synced as long as you're signed in to your Microsoft account, so even if you accidentally delete your profile, you can easily restore it.

How to restore a deleted Microsoft Edge profile

However, if you select "Start without user data" on the initial screen of Microsoft Edge or if you have signed out from your profile settings, browsing data such as "Favorites," "History," and "Passwords" will not be synced.

If syncing is disabled, you will not be able to restore your profile if you accidentally delete it.

Microsoft Edge initial screen
Microsoft Edge initial screen

If you back up your profile regularly using the method described here, you will be able to easily restore it even if synchronization is disabled.

table of contents

Back up your Edge profile regularly

1. Preparation

1. First, make sure you display the file extension.

How to display file extensions

2. To prevent the command prompt window from appearing when executing a batch file, download the program I created, "CMD_MinRun.zip," from the following page.UnzipLet's do.

A program that runs a batch file (.bat or .cmd) in minimized mode.(Supports hiding windows)

The reason you don't want the command prompt window to appear when you run a batch file is because it interferes with your PC's operations.

For example, if a window appears while you are typing something (even if it is minimized), the input focus may be lost (the focus may change to the command prompt window or taskbar).

2. Where are Edge profiles stored?

Edge profiles are stored in the following folder:

C:\Users\ユーザー名\AppData\Local\Microsoft\Edge\User Data

Press Windows key + R to open Run, then type the following command and press Enter:

%USERPROFILE%\AppData\Local\Microsoft\Edge\User Data

The data is stored in the "Default" folder within this folder, and in a folder called "Profile number" if there are multiple profiles.

Profile Folder
Profile Folder
Profile Folder
Profile Folder

3. Creating a batch file

First, decide where to save the backup.

*Here, save it in the Documents folder.

%USERPROFILE%\Documents

2. Open Notepad and type the following command:

To copy a file, use "robocopy"Use the.

robocopy "%USERPROFILE%\AppData\Local\Microsoft\Edge\User Data\Default" "%USERPROFILE%\Documents\Default" /e

It is written as robocopy, a space, the path of the source folder, a space, and the path of the destination folder.

Make sure to enclose the folder path in double quotes.

If you have multiple profiles, add them.

Notepad
Notepad

3. Click "File" on the menu and then click "Save As."

4. Select the location where you want to save the batch file (here we will save it in the Documents folder), then ① change the file name to "Edge_Profile_Bacup.bat", ② change the save type to "All Files", ③ change the encoding to "ANSI", and click "Save".

Notepad - Save As
Notepad – Save As

Once you have created the batch file, double-click it to run it and check that the folders have been copied correctly.

If there are no problems, register it in the Task Scheduler.

4. Register the batch file in the Task Scheduler

1. Press Windows Key + R to open Run, type the following command and press Enter:

taskschd.msc

2. Task Scheduler will open, so click on "Task Scheduler Library" on the left.

task Scheduler
task Scheduler

3. Click "Create Task" on the right.

task Scheduler
task Scheduler

4. Enter a name of your choice, such as "Backup Edge Profile."

Task Scheduler - Creating a Task - General
Task Scheduler – Creating a Task – General

5. Open the Triggers tab and click New.

Task Scheduler - Create Task - Trigger
Task Scheduler – Creating a Task – Triggering

6. "New Trigger" will open,

  1. Change "Start task" to "On a schedule"
  2. Set "Start" to today's date and the time to open your computer every morning.
  3. Select "Every day"
  4. Enter the desired time in "Repeat every" (for example, "1 hour" will execute the task every hour).
  5. Check "Enabled" (checked by default)
New Trigger
New Trigger

*The duration can remain at 1 day.

When you have finished setting up, click OK.

7. Open the Actions tab and click New.

Task Scheduler - Create Task - Actions
Task Scheduler – Creating a Task – Operations

8. Enter the path of the downloaded "CMD_MinRun.exe" in "Program/script (P):".

* Be sure to enclose the folder path in double quotation marks.

Example:

"%USERPROFILE%\Documents\CMD_MinRun.exe"

In "Add arguments (optional) (A):", enter the path to the batch file and the option "/h".

Example:

"%USERPROFILE%\Documents\Edge_Profile_Bacup.bat" /h

*By using the "/h" option of "CMD_MinRun.exe", you can run the program with the window hidden (invisible).

Once you have entered the information, click OK.

Task Scheduler - Create Task - New Operation
Task Scheduler – Creating a Task – New Operations

9. Open the "Conditions" tab and uncheck everything.

Edge Profile Backup Properties - Conditions
Edge Profile Backup Properties – Conditions

10. Open the "Settings" tab and check the following items:

  • Run the task on demand (L)
  • If the task cannot be started at the scheduled time, run the task immediately (S)
  • Stop task after (K): (You can leave the default duration of 3 days)
  • Force stop of a running task if it does not finish when requested (F):
Edge Profile Backup Properties - Settings
Edge Profile Backup Properties – Settings

11. Finally, click OK to complete the task creation and start the task.

If you want to edit the triggers of the task you created, you can right-click on the task and click "Properties."

Edge Profile Backup Properties - Triggers
Edge Profile Backup Properties – Trigger

With the above settings, even if the task could not be executed while the PC was asleep, the task will be executed immediately after waking up from sleep.

Last run time and next run time

In the image below, the last execution time is 21:16:01, and the next execution time is 22:00:00.

task Scheduler
task Scheduler

You may be wondering why the next execution time is not 22:16:01 even though the "Repeat interval" is set to 1 hour, but that's not a mistake.

This is because the start time is set to 8:00:00, which means the task will run "every hour from 8:00:00."

Even if you run the task manually, the setting to run the task "every hour starting at 8:00:00" will not change.

例:8:00:00,9:00:00,10:00:00,11:00:00,12:00:00…

In the image above, the task could not be executed because the computer was in sleep mode at 21:00:00, but because the "Run the task immediately if it cannot be started at the scheduled time (S)" option was checked, the task was executed when the computer resumed from sleep mode.

How to restore a backed up Edge profile

1.Close Edge (process).

  1. Right-click on an empty area of ​​the taskbar > click "Task Manager"
  2. Open the "Processes" tab, right-click on "Microsoft Edge (number)" and click "End task".
Task manager
Task manager

2. Copy the backed up profile folder and open the location where the Edge profile is saved.

%USERPROFILE%\AppData\Local\Microsoft\Edge\User Data

3. Right-click on an empty area in the "User Data" folder and click "Paste."

*If you are using Windows 11, click the "Paste" icon.

Paste icon
Paste icon

If you see "Replace or Skip File," click "Replace File."

Replacing or skipping files
Replacing or skipping files

4. Once the files have been copied, the restoration is complete. Open Edge and check.

Where is your Chrome profile stored? Let's back it up automatically!

If you found this article helpful, please share it on social media.

Person who wrote this article

Driven by questions arising from my daily PC use and the desire to "do more," I have been pursuing self-study in Windows since around 2008. I am sharing the "aha!" techniques and solutions I discovered through trial and error with the sole purpose of helping you in your PC life.

View profile

Comment:

To comment

[About submissions]
We welcome any questions or information regarding the content of the article.
However, please note that content unrelated to the purpose of the article, criticism of specific individuals or organizations, offensive language,Inappropriate wordsComments containing the above may be deleted or made private without notice at the discretion of the administrator.
Please note that spam may be automatically deleted by anti-spam measures.

CAPTCHA


table of contents