Christopher Juckins

SysAdmin Tips, Tricks and other Software Tools

User Tools

Site Tools



This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
backup_script_using_xcopy [2010/02/22 20:46]
backup_script_using_xcopy [2010/02/26 05:27] (current)
Line 1: Line 1:
 Put the following text in a file and name it xcopyScript.bat Put the following text in a file and name it xcopyScript.bat
 +Example 1:
 <code> <code>
 xcopy "C:\Users\<username>" "D:\backups\" /r /e /h /k /c /y xcopy "C:\Users\<username>" "D:\backups\" /r /e /h /k /c /y
 </code> </code>
 +Example 2:
 +REM backup_Users_cjuckins.bat
 +REM 25 Feb 2010
 +rmdir /s /q "D:\backup_Users_cjuckins\"
 +mkdir "D:\backup_Users_cjuckins\"
 +xcopy "C:\Users\cjuckins\*.*" "D:\backup_Users_cjuckins\" /r /e /h /k /c /y > "D:\backup_Users_cjuckins.log"
 +More information on the web:
 [[]] [[]]
backup_script_using_xcopy.1266889602.txt.gz ยท Last modified: 2010/02/22 20:46 by juckins