The script does each backup to a new folder, so you can recover files from any time of the day. If you want to perpetually backup the files to only have one copy, you can just use the following batch file script:
Ok, so the batch file doesn’t work as well as a PowerShell script because the command forfiles doesn’t work well. A better script is the following PowerShell script, which you can save as a ps1 file and run it the same as a batch file (perpetually).
Here’s the PowerShell version of my perpetual backup batch file script: