How to Backup on Windows for Free Using Native Features

Updated on November 23, 2018
Simon Kravis profile image

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


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. 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.

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.

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

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.


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.

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

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.

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.

<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:

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”.

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.

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.

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.

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.

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.

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.

Outlook Archives

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 Version
Outlook.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.


    0 of 8192 characters used
    Post Comment
    • Simon Kravis profile imageAUTHOR

      Simon Kravis 

      3 months ago from Canberra, Australia

      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.

    • profile image


      3 months ago

      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 It allows me to have complete control over my backup process and monitor everything.


    This website uses cookies

    As a user in the EEA, your approval is needed on a few things. To provide a better website experience, uses cookies (and other similar technologies) and may collect, process, and share personal data. Please choose which areas of our service you consent to our doing so.

    For more information on managing or withdrawing consents and how we handle data, visit our Privacy Policy at:

    Show Details
    HubPages Device IDThis is used to identify particular browsers or devices when the access the service, and is used for security reasons.
    LoginThis is necessary to sign in to the HubPages Service.
    Google RecaptchaThis is used to prevent bots and spam. (Privacy Policy)
    AkismetThis is used to detect comment spam. (Privacy Policy)
    HubPages Google AnalyticsThis is used to provide data on traffic to our website, all personally identifyable data is anonymized. (Privacy Policy)
    HubPages Traffic PixelThis is used to collect data on traffic to articles and other pages on our site. Unless you are signed in to a HubPages account, all personally identifiable information is anonymized.
    Amazon Web ServicesThis is a cloud services platform that we used to host our service. (Privacy Policy)
    CloudflareThis is a cloud CDN service that we use to efficiently deliver files required for our service to operate such as javascript, cascading style sheets, images, and videos. (Privacy Policy)
    Google Hosted LibrariesJavascript software libraries such as jQuery are loaded at endpoints on the or domains, for performance and efficiency reasons. (Privacy Policy)
    Google Custom SearchThis is feature allows you to search the site. (Privacy Policy)
    Google MapsSome articles have Google Maps embedded in them. (Privacy Policy)
    Google ChartsThis is used to display charts and graphs on articles and the author center. (Privacy Policy)
    Google AdSense Host APIThis service allows you to sign up for or associate a Google AdSense account with HubPages, so that you can earn money from ads on your articles. No data is shared unless you engage with this feature. (Privacy Policy)
    Google YouTubeSome articles have YouTube videos embedded in them. (Privacy Policy)
    VimeoSome articles have Vimeo videos embedded in them. (Privacy Policy)
    PaypalThis is used for a registered author who enrolls in the HubPages Earnings program and requests to be paid via PayPal. No data is shared with Paypal unless you engage with this feature. (Privacy Policy)
    Facebook LoginYou can use this to streamline signing up for, or signing in to your Hubpages account. No data is shared with Facebook unless you engage with this feature. (Privacy Policy)
    MavenThis supports the Maven widget and search functionality. (Privacy Policy)
    Google AdSenseThis is an ad network. (Privacy Policy)
    Google DoubleClickGoogle provides ad serving technology and runs an ad network. (Privacy Policy)
    Index ExchangeThis is an ad network. (Privacy Policy)
    SovrnThis is an ad network. (Privacy Policy)
    Facebook AdsThis is an ad network. (Privacy Policy)
    Amazon Unified Ad MarketplaceThis is an ad network. (Privacy Policy)
    AppNexusThis is an ad network. (Privacy Policy)
    OpenxThis is an ad network. (Privacy Policy)
    Rubicon ProjectThis is an ad network. (Privacy Policy)
    TripleLiftThis is an ad network. (Privacy Policy)
    Say MediaWe partner with Say Media to deliver ad campaigns on our sites. (Privacy Policy)
    Remarketing PixelsWe may use remarketing pixels from advertising networks such as Google AdWords, Bing Ads, and Facebook in order to advertise the HubPages Service to people that have visited our sites.
    Conversion Tracking PixelsWe may use conversion tracking pixels from advertising networks such as Google AdWords, Bing Ads, and Facebook in order to identify when an advertisement has successfully resulted in the desired action, such as signing up for the HubPages Service or publishing an article on the HubPages Service.
    Author Google AnalyticsThis is used to provide traffic data and reports to the authors of articles on the HubPages Service. (Privacy Policy)
    ComscoreComScore is a media measurement and analytics company providing marketing data and analytics to enterprises, media and advertising agencies, and publishers. Non-consent will result in ComScore only processing obfuscated personal data. (Privacy Policy)
    Amazon Tracking PixelSome articles display amazon products as part of the Amazon Affiliate program, this pixel provides traffic statistics for those products (Privacy Policy)
    ClickscoThis is a data management platform studying reader behavior (Privacy Policy)