Here you can reviews various blog's articles related to robocopy command.
Scritping - Using robocopy to replicate files to remote location on scheduled tasks and sending final log and status email
http://www.alessandromazzanti.com/2014/01/scritping-use-robocopy-to-replicate.html
Backup – Lista dei comandi di Robocopy
http://www.alessandromazzanti.com/2013/02/backup-lista-dei-comandi-di-robocopy.html
Tips - How to migrate file server share and permissions
http://www.alessandromazzanti.com/2015/11/tips-how-to-migrate-file-server-share.html
Here is parameter syntax about real time backup.
/MON:n :: MONitor source; run again when more than n changes seen.
/MOT:m :: MOnitor source; run again in m minutes Time, if changed.
Here is a sample .cmd string line:
start /b robocopy %USERPROFILE%\Desktop \\SERVERNAME\BackupUsers$\%computername%\%username%\Desktop
/mon:1 /E /ipg:25 /w:10 /r:1 /XF "*.pst" /log:\\ SERVERNAME \BackupUsers$\%computername%\%username%\Logs\%mydate%_Incremental_Robocopy_Desktop.log
/NP