Click here for important information about

Solved XCOPY on INETPUB not working

Hewlett-packard Ms windows server 2003 r...
October 14, 2011 at 15:14:03
Specs: Windows 2008, Quad Core / 2Gig
I am trying to use the following code to backup one of our website servers running Server 2008. Here is the script I am running.

@echo off
echo y|WBADMIN START SYSTEMSTATEBACKUP -backuptarget:E: > c:\backuplog.txt
xcopy /S /I /H /R /T "e:\windowsimagebackup\svr030" "e:\backups\svr030" >> c:\backuplog.txt
rmdir /S /Q "e:\windowsimagebackup\svr030" >> c:\backuplog.txt

xcopy /S /I /H /R /T "c:\inetpub" "e:\backups\svr030 inetpub" >> c:\backuplog.txt

call %windir%\system32\inetsrv\appcmd add backup >> c:\backuplog.txt
xcopy /S /I /H /R /T "%windir%\system32\inetsrv\backup" "e:\backups\svr030 IIS Setings" >> c:\backuplog.txt

The xcopy /S /I /H /R /T "c:\inetpub" "e:\backups\svr030 inetpub" >> c:\backuplog.txt is the line I am having a problem with. It seems to only be copying the directory structure but not the files. Is there a switch I am missing or an attribute on these files that is preventing them from copying?


See More: XCOPY on INETPUB not working

October 14, 2011 at 21:09:08
✔ Best Answer
It's the /T.

/T Creates directory structure, but does not copy files. Does not include empty directories or subdirectories.

Check out xcopy /?

Report •

October 18, 2011 at 16:19:10
Yep thanks. I ment to have a /Y.


Report •

October 18, 2011 at 20:03:41
No problem ace_omega.

Report •
Related Solutions

Ask Question