Christopher Juckins

SysAdmin Tips, Tricks and other Software Tools

User Tools

Site Tools


backup_script_using_xcopy

Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
backup_script_using_xcopy [2010/02/26 05:27] juckinsbackup_script_using_xcopy [2025/03/20 19:42] (current) juckins
Line 1: Line 1:
 +==== Backup Script with XCopy ====
 +
 Put the following text in a file and name it xcopyScript.bat Put the following text in a file and name it xcopyScript.bat
  
Line 12: Line 14:
 rmdir /s /q "D:\backup_Users_cjuckins\" rmdir /s /q "D:\backup_Users_cjuckins\"
 mkdir "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"+xcopy "C:\Users\cjuckins\*.*" "D:\backup_Users_cjuckins\" /r /e /h /k /c /y > "D:\backup_Users_cjuckins.log"
 </code> </code>
  
backup_script_using_xcopy.1267180022.txt.gz · Last modified: 2010/02/26 05:27 by juckins