For mirroring a volume, the basic syntax would be:
code:
robocopy [source] [dest] /MIR
This will copy everything from [source] to [dest] while also deleting everything from [dest] that doesn't exist on [source].
If you omit the /MIR option it will copy files only and not delete anything from [dest].
If either the source or destination partitions are FAT32 or network shares (especially if they're Linux SAMBA shares) you will also need to add /FFT to the end of the command above otherwise every time you re-run robocopy it'll think the files on the source drive are newer and copy them again.
Other options that might be useful are /XD and /XF which ignore directories and files respectively. Depending on your user credentials, you might need these for ignoring the "System Volume Information" folder and "$Recycle.Bin".
So a full command might look like:
code:
robocopy [source] [dest] /MIR /FFT /XD "System Volume Information" /XD "$RECYCLE.BIN"
All you really need to do is make sure you don't get [source] and [dest] the wrong way around
:)EDITED: 1 Feb 2012 11:13 by MATT