Backup - Robocopy and real time monitoring of any file changes

During these years we found possibility to launch robocopy that, in real time, monitor folder files and copy immediately to destination if any changes occurs.

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

Backup – Lista dei comandi di Robocopy

Tips - How to migrate file server share and permissions

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