October 2017
Intermediate to advanced
382 pages
11h 26m
English
Backing up file-based data can be done manually with any number of software packages, such as TeraCopy (http://www.codesector.com/teracopy), or with virtually any self-respecting programming language. That said, in its most basic form, what we need to do here can probably, in most cases, be handled with a simple Windows batch file utilizing Robocopy, which has been a standard feature since Windows Vista and Windows Server 2008. Let's take a look at what that might look like.
First, we set ECHO OFF to suppress messaging. Next, through a series of FOR loops, we repeatedly parse the DATE system variable to get the month, day, and year parts we need to construct a date string for today's date in the form of yyyy-mm-dd or 2017-09-05 ...