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.txtThe 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?
Thanks
It's the /T. /T Creates directory structure, but does not copy files. Does not include empty directories or subdirectories.
Check out xcopy /?
Yep thanks. I ment to have a /Y. :p
No problem ace_omega.
Yes (14) | ![]() | |
No (14) | ![]() | |
I don't know (15) | ![]() |