A PowerShell script to mirror files & folders using Robocopy.
This can run with or without admin rights. If set to run with admin rights via script variable it will auto escalate via a UAC prompt.
Example of backing up local source data to a local destination:
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.