Robocopy

https://technet.microsoft.com/en-us/library/cc733145.aspx

http://pastebin.com/E1iiUsF7

http://robomirror.sourceforge.net/ shadow copy issue. Copying extended NTFS owner and auditing information /copyall or /copy:datsou

http://www.sevenforums.com/tutorials/187346-robocopy-create-backup-script.html

http://stackoverflow.com/questions/6649527/rsync-does-not-properly-set-permissions-on-windows-folder?rq=1

http://stackoverflow.com/questions/5798807/rsync-on-windows-wrong-permissions-for-created-directoried

https://michael.mckinnon.id.au/2011/06/27/how-to-do-windows-backups-with-robocopy-tips/ Junction points.

code notes

 * /DCOPY:T directory time stamps. http://burpee.smccme.edu/studenthowtos/robocopy.htm
 * /mir -> /E /PURGE
 * /COPYALL, copy all file info and maintain file permissions and shares.
 * /TBD, wait for sharenames to be defined.
 * /V verbose, /NP no progress, speeds up copying. /ETA estimated time of arrival of file.
 * /L only list files, don't copy anything. /TEE output to console window and log file.
 * set EXCLUDES=/xd *RECYCLE* "System Volume Information" /xf .DS_Store Thumbs.db *.$$$ desktop.ini *.sys
 * robocopy.exe C:\Data1 e:\Backups\Data1 %ARGS% %EXCLUDES% %LOGTEST% 
 * /Z /xd /XJ /XF https://michael.mckinnon.id.au/2011/06/27/how-to-do-windows-backups-with-robocopy-tips/
 * /XJ – Exclude NTFS junction points, to avoid the endless “Application Data” folder nesting on some Windows Vista/7 machines.
 * It has a nifty network-restartable mode (/Z option) which means if it fails, you can just re-run the command and it will pick up where it left off essential when you’re moving Gigabytes and Terra-bytes of data
 * set ARGSNOFILEDEL = /E /COPYALL /ETA /r:1 /w:1 /TEE
 * robocopy.exe C:\Data1 e:\Backups\Data1 %ARGSNOFILEDEL% %LOGTEST% 

3
http://robomirror.sourceforge.net/  Volume shadow copy to copy files locked by running processes    Robocopy backup mode /zb or /b to copy files the user has no direct access to   Copying extended NTFS owner and auditing information /copyall or /copy:datsou In order to use these features, the user needs to be in the Backup Operators or in the Administrators group. In the latter case, Robomirror needs to be run as administrator if using Windows Vista or newer and UAC is enabled.

http://ithelp.cveg.uark.edu/IT_Help/Documents_files/backup.pdf  vshadod.exe command

Final script

 * @echo on
 * set LOGTEST=/log:c:\Games\backuplog.txt
 * set LOG=/log:c:\Games\backdownload.txt
 * REM set ARGS=/E /Z /B /FFT /XJ /PURGE /ETA /r:0 /w:0 /TEE
 * set ARGS=/E /Z /NP /B /FFT /XJ /PURGE /r:0 /w:0
 * set EXCLUDEDIRECTORY=/Xd "Temporary Internet Files" "qbittorrent" *RECYCLE* "System Volume Information"
 * Set EXCLUDEFILES=/XF pagefile.sys hiberfil.sys
 * robocopy.exe  C:\Users\pc2\Documents    e:\Backups\Data1     %ARGS%    %EXCLUDEDIRECTORY% %EXCLUDEFILES%  %LOGTEST%
 * robocopy.exe  C:\Users\pc2\Downloads    e:\Backups\Downloads %ARGS%    %EXCLUDEDIRECTORY% %EXCLUDEFILES%  %LOGTEST%
 * pause