A PowerShell script to backup files to a folder with current timestamp using Robocopy.
This needs admin rights to run (and will auto escalate via a UAC prompt if not).
Example of backing up local source data to a local destination:
Destination Directories Automatically Created:
DISCLAIMER: THIS CODE IS PROVIDED FREE OF CHARGE. UNDER NO CIRCUMSTANCES SHALL I HAVE ANY LIABILITY TO YOU FOR ANY LOSS OR DAMAGE OF ANY KIND INCURRED AS A RESULT OF THE USE OF THIS CODE. YOUR USE OF THIS CODE IS SOLELY AT YOUR OWN RISK.