How to use File History to backup and restore files on Windows

Protect your files from accidental deletion, modification, and corrupting with File History backup on Windows 11.

Windows 11 File History
Windows 11 File History / Image: Mauro Huculak
  • To enable File History on Windows 11 (or 10), connect the external USB hard drive to your computer, open Control Panel > System and Security > File History, and click the “Turn on” button to create a file backup.
  • To use a network location, open “Select drive” and click the “Add network location” option.
  • It’s still possible to add custom folder locations using the “Libraries” feature on File Explorer.

On Windows 11 (and 10), “File History” is a legacy feature that allows you to create a file backup on an external or network drive to recover files in case of they’re lost, corrupted, or deleted. 

File History backs up your files in the “Documents,” “Pictures,” “Videos,” “Music,” and “Desktop” folders, including the OneDrive files locally stored on the device by default. However, it’s no longer possible to include additional folder locations in the backup unless you add other folders as library locations on File Explorer.

In this guide, I will teach you the steps to set up File History on an external drive or network folder on Windows 11 as well as on Windows 10.

Set up File History backup to an external USB drive

To create a file backup on Windows 11 (or 10) using File History, connect an external drive and use these steps:

  1. Open Start.

  2. Search Control Panel and select the top result to open the app.

  3. Click on System and Security.

  4. Click on File History.

    Open File History

  5. Click the “Turn on” button if the backup drive already shows in the list.

    File History enable option

    Quick tip: If you want to use another drive, click the “Select drive” option on the left to change the settings.
  6. (Optional) Click the Advanced Settings option from the left pane.

  7. Choose how often File History should create incremental backups of your files using the “Save copies of files” setting under the “Advanced settings” section.

    File History backup frequency and retention

  8. Choose the backup retention using the “Keep saved versions” setting.

  9. Click the Save changes button.

  10. (Optional) Click the Exclude Folders option from the left pane.

  11. Click the Add button.

    File Explorer exclude locations

  12. Select the folder location to exclude from the backup.

  13. Click the Select Folder button.

  14. Click the Save changes button.

Once you complete the steps, File History will begin backing up your files in the external storage.

On the “Advanced Settings” page, you will also find the “Event logs” section with an option to open the Event Viewer, where you can check errors and other events generated by File History.

If you want to include files from OneDrive, you must configure them to be available without an internet connection. You can do this by selecting and right-clicking the files and folders and choosing the “Always keep on this device” option. Otherwise, the feature will ignore the file because it is technically not locally available on the device.

If you want to stop File History, you can use the same instructions outlined above, but in step 5, click the “Turn off” button.

Set up File History backup to a network folder

To create a file backup to a network folder with File History, use these steps:

  1. Open Start.

  2. Search Control Panel and select the top result to open the app.

  3. Click on System and Security.

  4. Click on File History.

    Open File History

  5. Click the Select drive option from the left pane.

    File History select drive

  6. Click the “Add network location” option.

    Add network location

  7. Select the network folder to backup files with File History.

  8. Click the Select Folder button.

    Quick note: It’s assumed that you already have access to the shared folder. Otherwise, you can use these instructions to set up file sharing on Windows 11.
  9. Click the OK button.

  10. Click the “Turn on” button to enable File History on Windows 11 (or 10).

    File History enable network folder

  11. (Optional) Click the Advanced Settings option from the left pane.

  12. Choose how often File History should create incremental backups of your files using the “Save copies of files” setting under the “Advanced settings” section.

    File History backup frequency and retention

  13. Choose the backup retention using the “Keep saved versions” setting.

  14. Click the Save changes button.

  15. (Optional) Click the Exclude Folders option from the left pane.

  16. Click the Add button.

    File Explorer exclude locations

  17. Select the folder location to exclude from the backup.

  18. Click the Select Folder button.

  19. Click the Save changes button.

After you complete the steps, the feature will create a backup of your files to the network location.

Add custom folder locations to File History

In the past, File History included an option to help you add custom folder locations other than the default profile folders and libraries, but the option has been removed. However, it’s possible to include custom locations (for example, from folders in secondary drives) as long as you include the location in one of the system libraries.

To add more folder locations to File History, use these steps:

  1. Open File Explorer (Windows key + E).

  2. Open the folder to include it in File History.

  3. Press and hold the “Shift” key and right-click the folder, choose the “Include in library,” and then select the “Create new library” option.

    File History add custom folder locations

  4. (Optional) Press and hold the “Shift” key and right-click the newly created library and choose the Rename option.
  5. Confirm a name like “File History” and press Enter.

  6. (Optional) Open another folder location to add to File History.

  7. Press and hold the “Shift” key and right-click the folder, choose the “Include in library,” and then select the “File History” library.

Once you complete the steps, the File History will now include the custom folder locations in the backup process.

As a personal note. I have tried modifying the “Config1.xml” file (available on %UserProfile%\AppData\Local\Microsoft\Windows\FileHistory\Configuration) to include additional folder locations manually, but the feature kept resetting the configuration to the default settings. As such, I’m not including it as an option.

Restore files from File History on Windows

To restore files backed up with File History, use these steps:

  1. Open Start.

  2. Search Control Panel and select the top result to open the app.

  3. Click on System and Security.

  4. Click on File History.

    Open File History

  5. Click the Restore personal files option from the left pane.

    Restore personal files

  6. Use the navigation buttons to move to a point in time to restore your files.

  7. Select the content that you want to recover.

  8. Click the green button to restore your files to their default location.

    File History restore files

    Quick tip: You can also click the gear button in the top-right corner and use the Restore option to restore files to an alternate location.

Once you complete the steps, the files will be restored to the specified location on Windows 11.

File History vs. backup

It’s important to note that File History is considered a backup, but it’s been designed for occasional recovery. For example, the feature is perfect for restoring one or a group of files after accidental deletion or modification. However, the feature is not meant to recover all of your files after performing a clean installation of Windows 11 or restoring all of your files since you will have problems reconfiguring the feature. If you manage to make the feature work, restoration could take a long time if you have a lot of files.

If you want to back up and restore all your files, you will have to create a full backup of the entire computer or file backup

Although you can still use File History to create automated file backups, on Windows 11, Microsoft is no longer exposing the feature through the Settings app because it wants you to subscribe to OneDrive to keep the files backed up in the cloud. However, if you prefer a local solution, you can still use the feature through the Control Panel.

Update August 12, 2024: This guide has been updated to ensure accuracy and reflect changes to the process.

About the author

Mauro Huculak is a Windows How-To Expert who started Pureinfotech in 2010 as an independent online publication. He has also been a Windows Central contributor for nearly a decade. Mauro has over 15 years of experience writing comprehensive guides and creating professional videos about Windows and software, including Android and Linux. Before becoming a technology writer, he was an IT administrator for seven years. In total, Mauro has over 21 years of combined experience in technology. Throughout his career, he achieved different professional certifications from Microsoft (MSCA), Cisco (CCNP), VMware (VCP), and CompTIA (A+ and Network+), and he has been recognized as a Microsoft MVP for many years. You can follow him on X (Twitter), YouTube, LinkedIn and About.me. Email him at [email protected].