How To Backup Network Drive With Robocopy

I was using Goodsync to make regular network drive backups, because it was already installed
when the machine previously had “elevated privileges”. However, my computer was “refreshed”, basically I
had to get a new machine, and it didn’t have any of the old software.

If you are working for a company that has it’s own internal IT regulated systems, chances are you
have to “request (beg)” for special permissions to install certain software on your own company machine.

So I began to hunt for a new backup software.

I have always challenged myself to try and find a way around these situations like this where possible.

Come to find out, Robocopy does pretty much the same thing as Goodsync, but it doesn’t have the “pretty” interface.

Robocopy is a command line, robust internal file/copy tool that is already apart of your standard Windows installation,
and many system admins use this utility regularly.

This is my robocopy script to copy files from one server to another


First: here is the basic syntax:

Robocopy /S {source} {destination} /MIR /R:0 /W:0

Example (type at the command line):

Robocopy /S //fs01/JA4/Share/Public E:\DailyRollingShared\2018-12-03 /MIR /R:0 /W:0


We save a daily backup to an external hard drive every day for 30 days, and then move one of those copies
as a monthly backup to a “monthly backup” external drive, which we’ll keep for 5 years.

So here is the Robocopy syntax to delete files and folders of those directories over 30 days old:

First, a folder needs to be created to “store” the deleted files. It’s more like a blackhole for files and folders.

mkdir emptyfolder
robocopy emptyfolder 2018-04-08 /purge

? /PURGE :: delete dest files/dirs that no longer exist in source.

Here are some helpful screenshots for the robocopy backup

If your scheduled task is not running you need to make sure your computer is not falling into “sleep” mode:


I run the shared drive backup from a batch file which is launched by a scheduled task at 4:30pm every day.

Here is the code for my SharedBackup.bat

Hope this helps, feel free to contact and ask any questions.


Tags: ,
Previous Post
An Overview And Some Uses Of MS Access tn
MS Access

An Overview And Some Uses Of MS Access

Next Post

What to do if you feel plateaued