It depends how 'purty' you want it. Personally I use a Robocopy in a Powershell script. Robocopy is the standard Microsoft command line tool for this.
https://docs.microsoft.com/en-us/windows-server/administration/windows-comma...
So the script would be called maybe 'backup.ps1' and the contents as follows:
$date = Get-Date -format yyyyMd echo $date $logfile = "C:\Users\myuser\robocop\logs" + $date + ".log" echo $logfile echo "Starting copy of first folder ..." robocopy C:\Users\myuser\folder1 \myserver\myshare\folder1-backup /XF *.tmp *.bak *.fxp /MIR /FFT /R:3 /W:10 /NP /NDL /MT:32 /log+:$logfile echo "Finished first folder." pause
The 'robocopy' line there will recursively mirror the contents of
C:\Users\myuser\folder1
to
\myserver\myshare\folder1-backup
The other switches are:
/XF *.tmp *.bak *.fxp (exclude these extensions)
/MIR (mirrors the directory tree)
/FFT (handles timestamps in a way that will work if the target is not NTFS)
/R:3 (Retry failed copies three times)
/W:10 (Wait 10 seconds between retries)
/NP (Don't display progress)
/NDL (Don't log directory names in the log file, makes it smaller)
/MT:32 (Multithreaded copy with 32 threads)
/log+:$logfile (log to the filename created above)
You'd have to manually add further 'robocopy' lines to do other locations of course but that's just copy\paste.