Updated date:

How to Backup on Windows for Free Using Native Features

Simon has been involved in software development since the days of paper tape. He has developed niche software for information management.

3 Ways to Backup Your Data and Documents

Most domestic users only want to recover the last version of a file which they stored, as protection against loss of access through computer failure, loss, or malicious encryption by ransomware. They seldom have any interest in how the content evolved, or whether a document existed at a particular time. Backup software with the ability to restore files at any stage of their evolution, which is provided by most backup programs, is thus overkilled for this purpose. There are now many options for where to store your backups.

1. USB Stick

Nowadays, USB sticks offer massive storage capacity (256 Gbyte devices are now available), but these devices were never intended for long-term storage, and if you use one, you may be unpleasantly surprised if you plug it in and received a “Device not recognized” message”. Don’t keep anything on one that you haven’t got a copy of somewhere else! The issue of the best long-term storage medium for backups is well discussed here.

2. Removable USB Drive

Removable USB drives are another attractive option, with terabyte capacity devices now standard. These have better long-term storage characteristics, as they but are not immune from failure. However, if your removable USB drive does fail, data recovery companies will usually be able to recover your data, though at a steep price.

3. Cloud Storage

Cloud storage for backups is widely offered and is falling rapidly in price, with one vendor offering 2 terabytes of storage for A$52/year. Smaller volumes are available free from many vendors, including Microsoft, Apple, and Google, but unless you’re very selective about what you back up, this won’t provide enough capacity. You’ll also need to factor in bandwidth costs – every byte you send across the Internet costs something. If you have a 2 GByte Outlook file store which changes every day, you will be up for at least 60GBytes per month in bandwidth costs, which may be a significant proportion of your plan allowance

How to Avoid Ransomware Damage

The rise of encrypting ransomware has added a new dimension to backup consideration for domestic users. If your backup storage is permanently attached to the computer whose data you’re backing up (for example, as a mapped drive), ransomware may encrypt this as well, making recovery without paying the ransom extremely difficult. To guard against this, only attach your backup storage when you’re creating the backup.

How to Use Robocopy as Backup

A humble Windows command line utility called robocopy (Robust File Copy) allows you to create a Windows batch file which you only have to double-click on to create your backup. Robocopy has been part of Windows since the Vista release in 2007, so it’s most unlikely that Windows users don’t have it already.

Robocopy is anything but user-friendly: it has over 80 parameters. Fortunately, you don’t need to know what they are to create a robust and reliable backup.

  1. To create your backup batch file, open Notepad and paste in the following lines, with <UserFolder> replaced by the folder you want to back up and <BackupFolder> replaced by the in which you wish to store the backup, which will be created if it doesn’t already exist. Replicate the line for each folder you wish to back up. robocopy "<UserFolder>" "<BackupFolder>" /e /np /tee /R:1 /W:5 /log+:backup_log.txt pause
  2. These parameters tell Robocopy to copy all files in all subfolders with a newer modified date than the file existing in the backup Folder, including empty ones (/e), suppress reporting of how many files have been copied (/np), writes the status output to the console window (/tee), as well as appending to the log file (/log+:backup_log.txt). If Robocopy encounters files or folders which it cannot access, it will retry once (/R:1) after a delay of 5 seconds (/W:5), before moving to the next item.
  3. If you need more sophisticated features in your backup (such as ignoring certain files or folders on the basis of any attribute), or to create a new backup log each time check the Robocopy documentation to see how to do it.
  4. <UserFolder> and <BackupFolder> have to be specified as full paths. To find the full path to your Documents folder, open File Explorer by right-clicking on the Start icon or clicking on the taskbar icon:
  5. Then click on any folder inside This PC> Documents, and then click on the top text box showing This PC > Documents>Folder In Documents. The box will then change to “C:\Users\<UserName>\Documents\Folder in Documents”. <UserName> is not necessarily the name of the account you log on with.) The full path to the Documents folder is “C:\Users\<UserName>\Documents”.
  6. Windows has dedicated folders for Pictures, Music, and Videos that may require separate robocopy commands as they are located in C:\Users\<UserName>\Pictures, C:\Users\<UserName>\Music and C:\Users\<UserName>\Videos respectively.
  7. For a locally connected backup device such as a removable USB drive, plug it in and when it appears as a mapped drive, browse to the folder in which you want to store your backup with File Explorer and click in the top text box containing the text >This PC> DriveName(DriveLetter:) > Backup Folder.
  8. DriveName will be the name of your drive (usually a brand), and DriveLetter will be the drive letter which Windows assigns for the drive. Commonly it will be D, but if there are other USB devices connected it may be a different letter later in the alphabet. After you click, the display will change to something like D:\Backup Folder Name. This is the string you should use as the robocopy parameter.
  9. Then save the file in a convenient folder or on the Desktop, with a file name with extension .bat. It may be worth making copies of the file with different drive letters in case the one assigned to your backup device changes.
  10. To run your backup, just double-click on the .bat file you have created. When your backup batch file runs for the first time, all files will be copied to the backup folder. A black command line window will appear showing the current status of the job. On subsequent runs, any new files will be added, and any files with newer modified dates in the User Folder than in the Backup folder will be replaced. All actions will be recorded in the file Backup_log.txt, which will be created in the same folder in which you placed the backup batch file. Clicking any key will close the command window after the backup has run.
  11. To look at or restore files you have backed up, connect your backup device (if necessary) and use File Explorer to browse to whatever you need to access.

Use Outlook Archives as a Backup

If you use Microsoft Outlook as a mail client in POP mode, all your emails will be stored in a large archive file with extension .pst on your local machine, whose modified date changes every time you start Outlook. The default location is C:\Users\<UserName>\Documents\Outlook Files, so it is likely to be included in your backup. This is a critical file for backups, but because Outlook keeps the file locked whenever it is running, robocopy (and many other backup programs) cannot copy it, so it will not be included in the backup unless it is closed. To ensure that this file is backed up, either close Outlook before running the backup, or add lines to the backup batch file to close it and re-open it after the backup has completed as follows:

taskkill /f /IM outlook.exe
robocopy "<UserFolder>" "<BackupFolder>" /e /np /tee /R:1 /W:5 /log+:backup_log.txt
start “” "<Office>OUTLOOK.EXE"

Office> is the full path to the folder containing the Outlook.exe executable (enclosed in double quotes), which is as follows for different Office versions:

Office VersionTypeOutlook.exe Folder

Office 2007


C:\Program Files\Microsoft Office\Office12\


C:\Program Files (x86)\Microsoft Office\Office12\

Office 2010


C:\Program Files\Microsoft Office\Office14\


C:\Program Files (x86)\Microsoft Office\Office14\

Office 2013


C:\Program Files\Microsoft Office\Office15\


C:\Program Files (x86)\Microsoft Office\Office15\

Office 2016


C:\Program Files\Microsoft Office\Office16\


C:\Program Files (x86)\Microsoft Office\Office16\

Cloud Backup

As a filesystem application, robocopy cannot write directly to a cloud location. However, many cloud services provide a local copy of the files stored which is then synchronized with the version stored in the cloud. To utilize this, <BackupFolder> should be a folder in the local cloud storage folder eg C:\<UserName>\OneDrive\BackupFolder.

Synchronization of the files copied to the local cloud folder may take some time, and the copying of the files to be backed up will increase the amount of data stored on disk.

Scheduling Backups

Scheduled backups are commonly used in organizations, where computers are permanently connected to a network and backups can be scheduled outside of working hours. For domestic users, machines may not be turned on at the scheduled backup time and on-demand backup may be more appropriate. If you want to run a scheduled backup you should leave out the pause statement in the batch file or you will find a command waiting the next time you use the computer.

However, if you want to run your backup batch file at a particular time, the steps are as follows:

Click on Start and under search, type in Task and click open Task Scheduler.

Select Create Basic Task from the Actions pane on the right of the window.

Select Create Basic Task from the Actions pane on the right of the window.

Under Create Basic Task, type a name (eg Backup) and click Next.

Under Create Basic Task, type a name (eg Backup) and click Next.

From Trigger select an option and click Next. Selecting the Daily option and clicking Next allows the time and period to be set.

From Trigger select an option and click Next. Selecting the Daily option and clicking Next allows the time and period to be set.

Click Next and then Start a Program, click on the Browse button and select the backup batch file.

Click Next and then Start a Program, click on the Browse button and select the backup batch file.

Click on Finish to create the Task. and to ensure the task runs with highest privilege, click on Task Scheduler Library.

Click on Finish to create the Task. and to ensure the task runs with highest privilege, click on Task Scheduler Library.

Then double click on the Task you just created, click on Run with Highest privilege then click OK.

Then double click on the Task you just created, click on Run with Highest privilege then click OK.


This article is accurate and true to the best of the author’s knowledge. Content is for informational or entertainment purposes only and does not substitute for personal counsel or professional advice in business, financial, legal, or technical matters.


Simon Kravis (author) from Canberra, Australia on April 17, 2020:

Backup is notoriously unreliable, not just for free products.Backups may appear to be running successfully, but when trying to restore from one it may be discovered that it has not run successfully for months. I've had personal experience of this in a small company. Robocopy does produce a log file of all its actions and examination of this will indicate if it has worked as expected. I admit this does take more effort than looking at a warning message from a dedicated backup program with a GUI, but using paid rather than free software does not guarantee reliability.

charleswdrake on April 17, 2020:

If I were you, I wouldn't have used any free tool for backup purposes. I think that they are not at all reliable. I used some once before and lost a lot of my data without having the ability to recover it. But now, for my G Suite, I use https://spinbackup.com/products/google-apps-backup... It allows me to have complete control over my backup process and monitor everything.