Hardware

How to Backup Files to an External Hard Drive (Windows, Mac)

To backup files to an external hard drive, plug the drive in and use the built-in tool: File History on Windows (Control Panel, then System and Security) or Time Machine on a Mac (System Settings, then General). If you only want a one-off copy, drag your folders to the drive in File Explorer or Finder, or use robocopy on Windows for a repeatable copy.

Pick one method below. The automatic tools keep older versions of your files, which a hand copy does not.

What to back up first

Before you plug anything in, decide what you cannot replace. Programs can be reinstalled, but these cannot:

  • Documents, photos, videos and music, usually under your user folder.
  • Files on the Desktop and in Downloads that you actually keep.
  • Exports from apps that hold their own data, such as a password manager vault export, email archives or accounting files.

Then check that the drive has room. Add up the size of those folders and compare it with the drive's free space. On Windows you can see how much space the source drive uses in how to check hard drive space in Windows. If you are still choosing a drive, external SSD vs HDD covers the trade-offs.

Backup files to an external hard drive on Windows with File History

File History is the backup feature Microsoft documents for both Windows 11 and Windows 10. It saves copies of your files to an external drive or network location and keeps earlier versions, so you can go back to a file as it was on a previous day.

  1. Connect the external drive.
  2. Open Control Panel, then System and Security, then Save backup copies of your files with File History.
  3. Click Turn on. If Windows picked the wrong drive, click Select drive, choose your drive in the Select a File History drive window and click OK.
  4. If Windows asks whether to move existing files to the new drive or start fresh, choose the option you want.

By default it backs up Documents, Pictures, Videos and Desktop. Microsoft's page says all libraries are included, which also covers Music and any custom libraries. To add a folder that lives somewhere else, right-click it and choose Show more options, then Include in library.

Microsoft's page does not state a default backup interval, only that File History makes regular backups. Open the File History settings in Control Panel to see the current schedule on your machine.

Restore a file with File History

  1. In File Explorer, open the folder that used to contain the file.
  2. Right-click the folder name and select Restore previous versions. For the top level of a drive, right-click the drive.
  3. For items in a library, right-click them in the folder where they are actually saved, not inside the library.
  4. On the Previous Versions tab, pick a version from a day when the file still existed.
  5. Select Restore, or expand it and choose Restore to... to put the file somewhere else.

Microsoft warns that a plain restore replaces the current file or folder on your computer and cannot be undone. Use Restore to... when you are not sure.

One date matters here: Microsoft's page states that Windows 10 support ended on October 14, 2025, and recommends moving to Windows 11.

Backup files to an external hard drive on a Mac with Time Machine

These steps are for macOS Ventura 13 or later, as documented by Apple.

  1. Connect the external drive over USB or Thunderbolt.
  2. Choose Apple menu, then System Settings.
  3. Click General in the sidebar, then Time Machine.
  4. Click Add Backup Disk (or the Add button), select your drive and click Set Up Disk.
  5. If prompted, erase the drive or choose a different disk. You can also turn on Encrypt Backup and create a password.

Your Mac starts backing up straight after setup. Apple's schedule keeps hourly backups for the past 24 hours, daily backups for the past month and weekly backups for earlier months. When the drive fills up, the oldest backups are deleted. To change the frequency, open the Time Machine menu in the menu bar, choose Open Time Machine Settings, click Options and pick a setting under Back up frequency. To start a backup immediately, choose Back Up Now from the same menu.

Size the drive properly. Apple says it should have at least twice your Mac's storage, so a Mac with 1 TB of storage needs a drive of 2 TB or more. Apple also advises using the drive only for Time Machine. If you erase the drive during setup, anything already on it is lost, so copy off files you want to keep first.

Copy files by hand (any computer)

The simplest backup is a manual copy. Open the drive in File Explorer or Finder, create a folder named for the date, such as backup-2026-11-15, and drag your folders into it. Keeping a dated folder per backup stops a new copy from overwriting the previous one.

The weakness is discipline. Nothing runs on a schedule, and a file you delete from the drive afterwards is gone. For a few important folders, though, it is a perfectly valid start.

Repeatable copies on Windows with robocopy

robocopy ships with Windows and copies only what you tell it to. The syntax from Microsoft is robocopy <source> <destination> [<file>[ ...]] [<options>]. This command copies a folder and all its subfolders, including empty ones, to a drive lettered E: and writes a log:

robocopy C:\Users\alex\Documents E:\Backup\Documents /E /LOG:C:\Logs\backup.log

The options used there, per Microsoft's reference:

OptionWhat it does
/ECopies subdirectories, including empty ones.
/ZRestartable mode: an interrupted file copy can resume instead of starting over.
/R:<n> and /W:<n>Number of retries on a failed copy and seconds to wait between them. The defaults are 1,000,000 retries and 30 seconds, so set lower values or one locked file can stall the run.
/XD <directory>Excludes directories that match the names or paths you give.
/LLists what would be done without copying, deleting or time stamping anything.
/LOG:<file>Writes status output to a log file, overwriting an existing log. /LOG+: appends instead.

Run the same command again later and robocopy skips files that are already in the destination, so repeat runs are quick.

Be careful with /MIR

/MIR mirrors a directory tree. Microsoft defines it as /E plus /PURGE, and /PURGE deletes destination files and folders that no longer exist in the source. That makes the drive an exact mirror, but it also means a file you deleted by accident from the source is deleted from the backup on the next run. Swapping the source and destination by mistake is worse. Preview first with /L:

robocopy C:\Users\alex\Documents E:\Backup\Documents /MIR /L

Read the list of files before you remove /L. For a safer routine, use /E and skip /MIR.

Reading the exit code

Robocopy sets an exit code you can read in %ERRORLEVEL%. Microsoft documents that 0 means nothing needed copying and nothing failed, and 1 means all files were copied successfully. Codes 2 to 7 describe extra or mismatched files without failures, and any value of 8 or higher means at least one failure. In a script, treat 8 and above as an error.

Check that the backup works

A backup you have never opened is a guess. After the first run:

  • Open the drive and confirm your newest files are on it.
  • Restore one file to a different folder and open it. With File History use Restore to... for this.
  • Compare folder sizes on the source and the drive, or read the robocopy log for the line listing failed files.

Repeat this check every few months. If the drive stops appearing in File Explorer or Finder, see external hard drive not showing up before you assume the data is gone.

One drive is not the whole answer

An external drive protects you from a failed internal disk, an accidental deletion or a bad update. It does not protect you from a fire, a theft or a flood that takes the computer and the drive together, especially if both sit on the same desk. Keep a second copy somewhere else, for example a second drive at another address or a cloud backup. OneDrive can back up your Windows folders, as described in turn on OneDrive backup in Windows, but a sync service mirrors changes, so treat it as an addition to the external drive and not a replacement.

Unplug the drive when the backup finishes if you can. A disconnected drive cannot be changed by anything running on your computer, which includes mistakes and malware.

Frequently asked questions

How big should an external hard drive be for backups?
For a Mac using Time Machine, Apple says the drive should have at least twice the storage of the Mac. A Mac with 1 TB of storage needs a drive of at least 2 TB. Windows File History has no stated minimum, but a drive with more free space than your files take up lets it keep more versions.
Can I use the same external drive for backups and for storing other files?
Apple recommends using the drive only for Time Machine backups. The same advice is sensible on Windows: a backup drive that also holds your day-to-day files fills up, and one mistake can then damage the files and the backup together.
Is copying files by hand to an external drive a real backup?
It is a backup of the files as they were at the moment you copied them. It works if you repeat it regularly, but nothing reminds you, and an overwritten or deleted file is gone from the backup once you copy over it. Tools such as File History and Time Machine keep older versions automatically.
Should I leave the backup drive plugged in?
A drive that stays plugged in is exposed to whatever happens to the computer, such as a power surge, theft or malware. Unplugging it between backups and keeping it somewhere else is safer, at the cost of having to remember to connect it.

Sources