Scripting and Automating Backups on Windows

03/31/2022

Part One: Hardware


Today is World Backup Day and I thought it would be a perfect opportunity to share an easy backup solution for Windows workstations. I discovered this trick years ago when I worked as a desktop technician for a school corporation. At the time a department director wanted an external hard drive plugged into their computer and back ups to be run daily so they would not have to worry about losing any files. I was assigned this task but was also asked if I can find a way to do this without purchasing any special software. I did some Googling and found a simple way to do this with a batch script and Windows task scheduler. If you don’t know anything about scripting that is okay. I did not know anything about it either when I first tried this.


I have attempted to make this tutorial as beginner friendly as possible but if something does not make sense please reach out to me. Not much technical experience is needed. If you have an understanding of Windows file system (specifically files, folders and file paths), know what the Start button is, and can plug in a USB cable then you are smart enough to do this.


First you will need somewhere to save your backups. In order for a backup to be effective it has to be on a separate device than your computer’s primary hard drive. Another copy of the files on the same storage device will not prevent loss of data if the device fails. The easiest option will be to buy an external hard drive. You can purchase one from your favorite tech retailer. If you are unsure of what kind to get I have found Western Digital and Seagate to be reputable brands. I would also recommend getting a desktop external hard drive and not a portable external hard drive. In my experience the portable ones fail way more frequently and are easier to misplace. How much storage space needed will vary depending on how many files and the size of the files on your computer. Some people might need less than a gigabyte while others might need multiple terabytes. I would recommend going as large as possible to reduce the need to buy another larger hard drive in the future because you have run out of space for your back ups.