This copies the E: drive to the M: drive. You can adjust the
two paths, to point to the folders of your choice.
robocopy E:\ M:\ /mir /copy:datso /dcopy:t /r:3 /w:2 /zb /np /tee /v /log:robocopy_e_to_m3.log
The "mir" option is for mirror mode, where only out-of-date
files should get copied on subsequent runs. Also, the mirror
mode removes files that should not be there. The result
should be, that the contents of the destination exactly
match the source (no more or no less). So the command I
just gave, is not exactly "archival". The command as written,
is for making exact copies, with the least work from the hard drives.
The tool has other operating modes. That is not the only one.
The log file keeps track of what was done. I create
a log file for each robocopy run.
So in that example, it's not even a .bat file. Just
one line of crap I copy and paste into a command prompt
window.
Since the mirror mode is so dangerous (can wipe a destination drive),
always check what is typed very carefully before using. In
particular, since drive letters can change due to changes
you've made to your hardware, you could even copy/paste
or run a .BAT, that absolutely screws things up. I've done
that, just one time, and had to modify my usage procedure
to protect against it.
*******
There is a GUI available for running Robocopy.
I haven't tried combining this, with an OS that
already has a copy of Robocopy. And for all I know,
the GUI could be more trouble than it is worth.
http://technet.microsoft.com/en-us/magazine/2006.11.utilityspotlight.aspx
*******
Have you tried the built-in Windows backup software ? If
you have an OEM laptop, the cruft they include, may have
replaced it. But you can try accessing it, from here. Tey
one of these, and see if it starts you in a dialog to select
things to back up.
sdclt /configure
sdclt /configure /target
On my Windows 7 laptop, Acer managed to damage the dialogs
for the Windows backup, so it does not work as intended.
You have to play around, to get to the Microsoft original
design intent on my machine.
HTH,
Paul