Backup

A few simple scripts for automated data backup

PowerShell on Windows work computer Work computers within the hospital network typically restrict administrative rights to install custom tools. Over the years, I have found that PowerShell + robocopy nightly backup to an intranet network share is the most straight-forward method. First create the following PowerShell script and save it as nightly-backup.ps1 under User Home. ROBOCOPY C:\Workspace \INTRANET\UserHome\Backup\Workspace /DCOPY:DA /MT /MIR /FFT /Z /XA:SH /R:0 /TEE /XJD Then create a task in Task Scheduler to be run every midnight.