Halloween DealsAmazon USHalloween week deals: useful picks before month-endAmazon US: current deals, useful picks and tech finds.Check DealsClean PCRecommendedOne scan can reveal what keeps slowing WindowsLook for cleanup and repair opportunities.Run ScanHalloween DealsAmazon USOctober picks are moving - compare before checkoutAmazon US: current deals, useful picks and tech finds.See Picks×
Skip to the article
Know your tech before you buy it. Makers: get listed from $49/mo
Featured

How to Schedule Folder Backup Without Software in Windows

How to Schedule Folder Backup Without Software in Windows
Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

The Geeks Club is reader-supported. When you buy through links on our site, we may earn an affiliate commission. As an Amazon Associate I earn from qualifying purchases. Learn more

Scheduling automated folder backups in Windows without relying on third-party software is achievable by combining two powerful built-in tools: Robocopy and Task Scheduler. Robocopy (Robust File Copy) is a command-line utility designed for robust file copying and synchronization, capable of handling complex scenarios like mirroring folders and resuming interrupted transfers. Task Scheduler is a Windows utility that allows you to automate tasks to run at specific times or in response to certain events.

This method is ideal for users who want granular control over their backups, want to avoid installing additional software, and are comfortable with a few command-line steps.

Step 1: Prepare Your Backup Strategy and Destination

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Before setting up the automation, decide what you want to back up and where.

Shopping ad
Sale
FYY Electronic Organizer, Travel Tech Pouch Bag, Cable Organizer Black | Wrist Strap, Waterproof, Double Layers Portable Electronics Travel Carrying Case for Cord, Charger, Daily Business Trips Use
  • Dimensions: 7.5" x 4.3" x 2.2". Compact size and lightweight make it easy to carry and put into your backpack, handbags or laptop bag without taking much space. Suitable for family use and daily organization. Note: Small mesh pockets are ideal for charging cords no longer than 3ft; longer cables (over 3ft) fit better in the larger compartments
  • Quality Material: This electronic organizer travel case made of high quality durable waterproof oxford and soft sponge inside to secure your gadgets in place and deliver a quick access whenever you want. Water-resistant fabric protects your gear from unexpected splashes, keeping all your electronic essentials safe and secure
  • Double Layers Design: This tech pouch features a double-layer interior design with 8 compartments, including multiple see-through mesh pockets and ample space to store your cords, cables, USB drives, cellphone, charger, mouse, flash drive and more, keeping all accessories neatly organized and tangle-free
  • Practical and Convenient: Comes with a comfortable hand strap for easy carrying; You may carry it in your hand when heading out. Durable and smooth zipper closure keeps your favorite device securely, convenient for you to have quick access to the items inside the case
  • Portable and Lightweight: The small size and lightweight design durable cable organizer pouch is a perfect choice when going on holiday, business trip, travel, office. Enjoy hassle-free travel without wasting time on tangled accessories. Great gift for yourself also a nice share with families and friends. (No include cords, electronic accessories)
  1. Identify Source Folder(s): Determine exactly which folders you want to back up (e.g., C:\Users\YourUsername\Documents, C:\ProjectFiles, etc.).
  2. Identify Destination Drive/Location: Choose where the backup copies will be stored. This could be:
    • An external hard drive (USB HDD or SSD) connected to your PC.
    • A network share (another computer on your network, or a Network Attached Storage – NAS device).
    • Ensure the destination has sufficient free space and is always accessible when the backup is scheduled to run.
  3. Understand Robocopy Commands (Key for Customization):
    • The core of your backup will be a Robocopy command. Here are some common and useful switches:
      • /E: Copies subdirectories, including empty ones. (Often used with /MIR).
      • /XO: Excludes older files (copies only newer files). Useful for incremental backups.
      • /XN: Excludes newer files (copies only older files).
      • /XC: Excludes changed files.
      • /XF file [file…]: Excludes specified files.
      • /XD dir [dir…]: Excludes specified directories.
      • /MIR: Mirrors a directory tree. This is powerful: it copies new/changed files, and deletes files from the destination that are no longer in the source. Use this carefully, as it means files you delete from your source will also be deleted from the backup.
      • /MT[:n]: Creates multi-threaded copies, speeding up transfers (e.g., /MT:8 for 8 threads).
      • /Z: Copies files in restartable mode (resumes interrupted transfers).
      • /LOG:filepath: Writes output to a log file (e.g., /LOG:C:\BackupLogs\MyBackup.log). Creates a new log each time.
      • /NP: No progress display (useful for scheduled tasks).
      • /R:n: Number of retries on failed copies (e.g., /R:1).
      • /W:n: Wait time between retries in seconds (e.g., /W:1).
    • Example of a common robust backup command (incremental, no deletions at destination): robocopy “Source_Folder_Path” “Destination_Folder_Path” /E /XO /NP /R:1 /W:1 /LOG:C:\BackupLogs\MyBackup.log
    • Example of a mirroring backup command (deletes from destination if not in source): robocopy “Source_Folder_Path” “Destination_Folder_Path” /MIR /NP /R:1 /W:1 /LOG:C:\BackupLogs\MyMirrorBackup.log

Step 2: Create a Batch File (.bat) for Your Backup Command

Automating Robocopy is best done by placing the command within a batch file.

  1. Open Notepad:
    • Search for “Notepad” in the Windows search bar and open it.
  2. Enter Your Robocopy Command(s):
    • Type (or paste) the robocopy command you designed in Step 1.3.
    • Replace Source_Folder_Path and Destination_Folder_Path with your actual paths.
    • Example:

Code snippet

@echo off

echo Starting Documents Backup…

robocopy “C:\Users\YourUsername\Documents” “D:\Backups\Documents” /E /XO /NP /R:1 /W:1 /LOG:”C:\Users\YourUsername\Documents\BackupLog.txt”

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Shopping ad
Sale
Ordilend Keyboard Cleaner & Laptop Cleaning Kit, All-in-1 for Computer PC | Electronics Deep Cleaning Reusable Brush Tool, Screen-Safe Spray, for iPhone iPad Macbook Airpod Camera, Gaming Accessories
  • 【UPGRADED LAPTOP CLEANING KIT 】 The macbook cleaning kit computer screen cleaner comes with a number of accessories including a retractable large brush, polishing cleaning cloth X 2, keycap puller, metal pen tip, flocking sponge, thin soft brush, soft plastic lens cleaning pen, 5 replacing cloth, large cleaning microfiber cloth. You deserve the comprehensive computer cleaning kit keyboard vacuum at a low cost
  • 【PROFESSIONAL KEYBOARD CLEANING KIT】 The laptop screen cleaner keyboard cleaner can pull out the keycaps of gaming keyboards and mechanical keyboards. A retractable keyboard brush works on laptops and keyboards, while the mini high-density brush is great for deep cleaning between keys for cleaning between flatter keys on a laptop, the metal pin tip gently removes any stains. This electronic cleaning kit macbook cleaner totally meets professional cleaning needs
  • 【OFFICE DESK ACCESSORIES】This keyboard cleaner kit is easy to use and can clean your keyboard and electronic screen with just one swipe. Wiping with the 2mm thicken widen polishing cleaning cloth designed at a right angle for better fitting screen corners of computers with our recyclable cleaning spray, The laptop cleaner kit for macbook effectively absorbs stubborn stains, leaves no discoloration, no streaks, and no fiber shedding on the screens
  • 【MULTIFUNCTIONAL TOOLS 】Mini soft brush and soft plastic lens cleaning pen are specially designed for DSLR camera screen, lens, and other delicate surfaces. 5 more cleaning cloths of it supplied for replacement. The flocking sponge is an excellent tool for cleaning earbuds charging cases, And the earbud cleaning kit is ideal. This electronics for college students is equivalent to 10 other electronic cleaning kit
  • 【PORTABLE DESIGN & CLEANER TOOL】 The office supplies is compact in design, easy to carry, and you can easily take it anywhere. It's convenient to keep one in a drawer, one in your car, or in your bag and dorm. It is easy to use and can clean your keyboard and electronic screen with just one swipe. Is the college essentials cleaning tool for your friends, family, colleagues and students

echo Documents Backup Completed!

    • (Optional): You can add multiple robocopy lines to back up several different folders in the same batch file.
  1. Save the Batch File:
    • Click File > Save As…
    • Navigate to a convenient location where you’ll store your scripts (e.g., create a new folder like C:\BackupScripts).
    • In the “File name” field, type a descriptive name followed by .bat (e.g., Daily_Documents_Backup.bat).
    • In the “Save as type” dropdown, select “All Files (*.*).”
    • Click “Save.”

Step 3: Schedule the Backup Task Using Task Scheduler

Now you’ll tell Windows when to run your batch file.

  1. Open Task Scheduler:
    • Search for “Task Scheduler” in the Windows search bar and open it.
  2. Create a Basic Task:
    • In the right-hand “Actions” pane, click “Create Basic Task…” This will launch a wizard.
  3. Name the Task:
    • Give your task a clear and descriptive Name (e.g., “Daily Documents Backup”).
    • Add a Description if desired.
    • Click “Next.”
  4. Set the Trigger (When to Run):
    • Choose how often you want the backup to run (e.g., “Daily,” “Weekly,” “At log on,” “When a specific event is logged”).
    • Click “Next.”
    • Configure the specific time, day, or recurrence based on your chosen trigger. Click “Next.”
  5. Set the Action (Start a Program):
    • On the “Action” page, select “Start a program.”
    • Click “Next.”
  6. Specify the Batch File:
    • Click “Browse…” next to “Program/script.”
    • Navigate to the location where you saved your .bat file (e.g., C:\BackupScripts\Daily_Documents_Backup.bat).
    • Click “Open.”
    • Leave “Add arguments (optional)” and “Start in (optional)” blank unless you have specific reasons to use them.
    • Click “Next.”
  7. Finish the Basic Task Creation:
    • Review the summary of your task.
    • Check the box “Open the Properties dialog for this task when I click Finish” (this is important for the next step).
    • Click “Finish.”

Step 4: Configure Advanced Task Properties (Crucial for Reliability)

Shopping ad
BAGSMART Large Electronic Organizer Travel Case for Tech Accessories, Black | Tech Accessories, Cord Storage, For Phone, Power Bank, SD Card, Cables
  • Compatible Space: This electronics organizer bag features 2 zippered mesh pockets fits phones, standard power banks, 4 elastic loop pouches for small items, 2 elastic loop pouches for wireless headphones and small chargers. Elastic loops for phone charging cable. And specific slots for SD cards. Please check the size to ensure it meets your needs
  • Lightweight Travel Accessories: The size of the electronic organizer travel case is 10.6" L x 7.5" W x 1.2" H, Compact but substantial size fits your intended bag or space. Suitable for traveling use and daily organization
  • Keep Everything Organized: This compact travel organizer features dedicated compartments for your phone charger, cables, and tech accessories, keeping them tangle-free and ready to go. You can find travel accessories quickly, no chasing cords in your pack anymore
  • Durable Travel Essentials: Features double zippers for easy access, elastic loops with non-slip grips for daily protection. Organizer for office use and traveling, (Not including cords, electronic accessories). It can serve as a travel checklist. Before you leave a place, just open the case and check if everything is there, preventing you from leaving things behind
  • Versatile Use: Its practicality and convenience make it a travel essential bag. It is suitable for a weekend trip, business trip, and travel. This organizer pouch is suitable for office, business, daily use and can be given as a gift for friends, family, or men, for birthdays, Valentine's Day, Christmas Day, Father's Day

For the backup to run reliably, especially if you’re not logged in or want it to run with elevated privileges, you need to adjust some advanced properties.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
  1. Access Task Properties: The “Properties” dialog for your new task should now be open (if you checked the box in Step 3.7). If not, in Task Scheduler Library, find your task, right-click it, and select “Properties.”
  2. General Tab:
    • Under “Security options,” click “Change User or Group…” and select a user account that has administrator privileges.
    • Check the box “Run whether user is logged on or not.” This allows the task to run even if you’re not logged in, which is crucial for truly automatic backups.
    • Check the box “Run with highest privileges.” This ensures Robocopy has the necessary permissions to copy files, even those requiring administrator access.
    • Click “OK.” You’ll be prompted to enter the password for the selected user account.
  3. Conditions Tab (Optional but Useful):
    • “Start the task only if the computer is on AC power”: Useful for laptops to prevent battery drain during backup.
    • “Start the task only if the following network connection is available”: Important if backing up to a network share. Select your home network.
  4. Settings Tab:
    • “Allow task to be run on demand”: Keep this checked so you can manually run the backup.
    • “Stop the task if it runs longer than:”: Set a reasonable time limit based on your backup size (e.g., 2 hours).
    • “If the running task does not end when requested, force it to stop”: Check this.
    • “If the task is already running, then the following rule applies:”: Choose “Do not start a new instance” to prevent multiple backups from running simultaneously.
  5. Click “OK” to save all changes.

Step 5: Test Your Scheduled Backup

  1. Manually Run the Task: In Task Scheduler, go to “Task Scheduler Library,” find your task, right-click it, and select “Run.”
  2. Check Progress and Logs:
    • Observe your Task Scheduler status (it should show “Running” and then “Ready”).
    • Check the destination folder to see if files are being copied.
    • Crucially, check the log file you specified in your robocopy command (e.g., C:\Users\YourUsername\Documents\BackupLog.txt) to ensure the backup completed without errors.
  3. Verify Automatic Run: Wait for the scheduled time and ensure the backup runs automatically.

By leveraging Robocopy and Task Scheduler, you gain a powerful, flexible, and completely built-in solution for automating your folder backups in Windows, ensuring your valuable data is regularly protected.

Frequently Asked Questions (FAQ)

Q1: What are the main benefits of using Robocopy with Task Scheduler for backups instead of File History?

Shopping ad
ColorCoral Cleaning Gel Universal Dust Cleaner for PC Keyboard Car Detailing Office Electronics Laptop Dusting Kit Computer Dust Remover, Computer Gaming Car Accessories, Gift for Men Women 160g
  • Universal fit: ColorCoral cleaning gel, simple and convenient cleaning kits for PC/laptop keyboard and other rugged surface, such as the car vent, camera, printer, telephone, calculator, Instrument, speaker, air conditioner, TV and other appliances
  • Safe cleaning gel: The keyboard cleaner gel is made from natural gel, no sticky to hands, smells sweet with lemon fragrance, no stimulation to skin
  • Easy dust cleaning: Make sure your hands are dry and clean, knead the cleaning gel into a ball, press the cleaning gel slowly into the keyboard, car vent and rugged surface till the cleaning gel could touch the bottom and then pull out, the dust would be carried away with the cleaning gel
  • Reusable: The keyboard cleaning gel could be used repeatedly till the color turn to dark or it become sticky, then you have to replace the cleaning gel with a new one. After cleaning, please stock the cleaning gel in cool place. (Note: Don’t wash the gel in water.)
  • In the package: 1 can of universal cleaning gel, we provide the cleaning gel with brand new, if you find the package broken, the cleaning gel dirty, or any other quality issues, please email us through message, we provide you new one soon

A1:

  • Granular Control: Robocopy offers far more detailed control over what gets copied, excluded, and how the copy process behaves (e.g., retries, logging, mirroring).
  • Any Folder: File History primarily focuses on user folders; Robocopy can back up any folder location.
  • Mirroring: Robocopy’s /MIR switch allows true synchronization, deleting files from the destination if they’re removed from the source, which File History doesn’t do.
  • No Versioning Overhead (if desired): While File History saves multiple versions, Robocopy can simply copy the latest version, saving space.

Q2: What’s the difference between /E and /MIR in Robocopy?

A2:

  • /E: Copies subdirectories, including empty ones. It’s used for an additive copy; it will copy new files and updated files from source to destination, but it will not delete files from the destination that no longer exist in the source.
  • /MIR: Mirrors a directory tree. This is a more aggressive synchronization. It copies new/changed files and deletes files from the destination that are not present in the source. Use /MIR with extreme caution, as it will make the destination an exact replica of the source, deleting anything in the destination that isn’t in the source.

Q3: Why is it important to run the Task Scheduler task with “highest privileges” and “whether user is logged on or not”?

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

A3:

  • “Run with highest privileges”: Ensures the Robocopy command has the necessary administrative rights to copy all files, including those that might be protected or require elevated permissions. Without this, some files might be skipped.
  • “Run whether user is logged on or not”: Allows the backup task to execute in the background even if no user is actively logged into the Windows session. This is essential for truly automatic and unattended scheduled backups.

Q4: My scheduled Robocopy backup isn’t working. What should I check?

Shopping ad
Sale
HOTO Pocket-Size Laser Measuring Tool, Gadget Birthday Gift for Men & Women | EDC,Keychain Carry Design, 98Ft Laser Tape Measure ±2mm Accuracy, USB-C Rechargeable, OLED Display, Ft/M/in Unit Conversion
  • Award-Winning Compact Design & EDC-Ready Gift Choice: Weighing only 0.09 lb and sized like a credit card, this compact laser measure is designed for everyday carry. It slips easily into a pocket, tool pouch, or bag, and can attach to a keychain for quick access wherever you go. Its minimalist design, premium tactile finish, and practical one-button measuring make it a useful EDC gadget for DIYers, real estate agents, homeowners, and tech enthusiasts. A thoughtful gift for men on any occasion
  • One-Button Easy Measuring, Simple to Use: Designed with simple one-button operation, this compact laser tape measure makes quick measuring easy without complicated controls. Just press to measure room dimensions, furniture spacing, window height, wall décor placement, and everyday distances around the home. Ideal for users who want a smart, pocket-size measuring tool that fits naturally into an everyday carry (EDC) setup and feels intuitive, modern, and easy to use
  • Fast & Accurate Indoor Measurements with Class 2 Laser: Measure distances from 0.16 ft to 98 ft with up to ±1/16 in / ±2 mm accuracy. With quick measurement response in about 0.2 seconds, HOTO helps you check spaces efficiently for home renovation, furniture layout, moving, decorating, craft projects, and DIY planning. Built with a Class 2 laser for everyday indoor measuring; use as directed and avoid direct eye exposure
  • Low-Power OLED Display & USB-C Rechargeable Convenience: The low-power OLED display provides clear indoor readings while helping reduce battery drain. With USB-C rechargeable design, auto shut-off, and up to 1000 measurements per charge, this digital laser measure is built for repeated daily use without frequent battery replacement. Compact enough to keep in a drawer, toolbox, bag, or pocket
  • Useful for Home, Work & Everyday Projects: From home renovation and furniture measuring to room planning, real estate checks, interior design, and light construction projects, this pocket-size laser distance measure is made for practical everyday use. Compact enough to keep in a drawer, toolbox, bag, or pocket, it is a stylish measuring tool that feels just as giftable as it is useful

A4:

  • Check the batch file path: Ensure the path to your .bat file in Task Scheduler is absolutely correct.
  • Check Robocopy command in batch file: Open the .bat file and manually run the robocopy command in Command Prompt to see if it works.
  • Log file: Check the robocopy log file (if you included /LOG in your command) for error messages.
  • Task Scheduler history: In Task Scheduler, select your task and go to the “History” tab to see if it ran and if there were any errors.
  • User account and password: Ensure the user account configured in Task Scheduler’s properties has administrator rights and that the password is correct.
  • Destination accessibility: If backing up to an external drive, ensure it’s connected and powered on. If to a network share, ensure the network connection is active and stable.

Q5: Can I back up to a cloud service using Robocopy and Task Scheduler without third-party software?

A5: Directly backing up to a cloud service’s native storage (like Google Drive or OneDrive’s web interface) using Robocopy is not feasible, as Robocopy works with local file paths or network shares. However, if you have a cloud sync client installed on your PC (e.g., OneDrive, Google Drive, Dropbox desktop apps) that creates a local synced folder on your hard drive, you could technically use Robocopy to copy files into that local synced folder. The sync client would then upload them to the cloud. This isn’t a direct cloud backup, but it leverages the existing local sync mechanism.

Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.

What’s actually slowing this PC down?

Pick the symptom - the matching free tool is one click away.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi
Recommended PC Tool
Recommended PC Tool
Windows Errors? Fix Them Before They SpreadFree repair scan
Crashes, No Sound, or Screen Glitches?Free driver scan

Two free Windows tools

One Free Minute Could Fix That PC

Before you go - each of these free tools takes about a minute and tackles what quietly slows a Windows PC down.

Special offer. View Outbyte info, uninstall instructions, EULA, and Privacy Policy.