:: Copyright © 2004 Quality Plus Consulting. All rights reserved. @title Back up files @ECHO OFF color 0E :: This is a sample robocopy script. All things that appear after a double colon are comments. :: You can get ROBOCOPY.EXE and ROBOCOPY.DOC from the NT Resource Kit or from the Internet. :: http://www.devhood.com/tools/tool_details.aspx?tool_id=321 :: It is a great utility that can be used to mirror a source directory in one location to :: a destination directory in another location. :: It is recommended to become a bit familiar with the tool before using it due to its power. See ROBOCOPY.DOC. :: ______________________________________________________________________________________________ :: Example below robocopy "C:\Documents and Settings\%Username%\My Documents" H:\MyDocuments /v /mir /z /np /r:2 /log:C:\Temp\BackupLog.txt :: The above command will replicate the local user My Documents directory to a folder on the person's :: H: drive. Results are logged to a text file in the local C:\Temp directory. :: This replicates only the changed data in a restartable mode. This is very useful in cases of a temporary :: network outage. :: Remember that the larger the amount of changed data you are trying to replicate, the longer it will take. :: If you have a 300 MB PST, it will take a while to copy that each day because the file changes every day, :: thus will be copied every day. :: REMEMBER THAT FILES THAT ARE OPEN CANNOT BE COPIED. YOUR EMAIL MUST BE CLOSED.