We have a Windows 2003 R2 server on which Sharepoint services was running. It got destroyed without a current proper backup. I have the data files (.mdf/.ldf) and I have an older backup (contains .bak files) that I have used before to restore the whole thing. Right now the Sharepoint is running properly with no data in it and none of our sites or anything. I would like to restore the data from the .mdf/.ldf files if possible or from the old backup if that isn't possible. I have been trying to use stsadm.exe to import the data since I don't want to a restore because I don't want it to restore security information. The command I am using is: stsadm.exe -o import -url
http://servername -filename c:\Data\WSS_Content.mdf
that gives me:
[2/19/2008 11:21:13 AM]: Start Time: 2/19/2008 11:21:13 AM.
[2/19/2008 11:21:13 AM]: Progress: Initializing Import.
[2/19/2008 11:21:13 AM]: Error: Unable to read cabinet info from c:\Data\WSS_Content.mdf
[2/19/2008 11:21:13 AM]: Debug: at Microsoft.SharePoint.Libra
ry.SPReque
st.Extract
FilesFromC
abinet(Str
ing bstrTempDirectory, String bstrCabFileLocation)
at Microsoft.SharePoint.Deplo
yment.Impo
rtDataFile
Manager.<>
c__Display
Class2.<Un
compress>b
__0()
at Microsoft.SharePoint.SPSec
urity.Code
ToRunEleva
tedWrapper
(Object state)
at Microsoft.SharePoint.SPSec
urity.<>c_
_DisplayCl
ass4.<RunW
ithElevate
dPrivilege
s>b__2()
at Microsoft.SharePoint.Utili
ties.Secur
ityContext
.RunAsProc
ess(CodeTo
RunElevate
d secureCode)
at Microsoft.SharePoint.SPSec
urity.RunW
ithElevate
dPrivilege
s(WaitCall
back secureCode, Object param)
at Microsoft.SharePoint.SPSec
urity.RunW
ithElevate
dPrivilege
s(CodeToRu
nElevated secureCode)
at Microsoft.SharePoint.Deplo
yment.Impo
rtDataFile
Manager.Un
compress(S
PRequest request)
[2/19/2008 11:21:13 AM]: FatalError: Failed to read package file.
at Microsoft.SharePoint.Deplo
yment.Impo
rtDataFile
Manager.Un
compress(S
PRequest request)
at Microsoft.SharePoint.Deplo
yment.SPIm
port.Run()
*** Inner exception:
Unable to read cabinet info from c:\Data\WSS_Content.mdf
at Microsoft.SharePoint.Libra
ry.SPReque
st.Extract
FilesFromC
abinet(Str
ing bstrTempDirectory, String bstrCabFileLocation)
at Microsoft.SharePoint.Deplo
yment.Impo
rtDataFile
Manager.<>
c__Display
Class2.<Un
compress>b
__0()
at Microsoft.SharePoint.SPSec
urity.Code
ToRunEleva
tedWrapper
(Object state)
at Microsoft.SharePoint.SPSec
urity.<>c_
_DisplayCl
ass4.<RunW
ithElevate
dPrivilege
s>b__2()
at Microsoft.SharePoint.Utili
ties.Secur
ityContext
.RunAsProc
ess(CodeTo
RunElevate
d secureCode)
at Microsoft.SharePoint.SPSec
urity.RunW
ithElevate
dPrivilege
s(WaitCall
back secureCode, Object param)
at Microsoft.SharePoint.SPSec
urity.RunW
ithElevate
dPrivilege
s(CodeToRu
nElevated secureCode)
at Microsoft.SharePoint.Deplo
yment.Impo
rtDataFile
Manager.Un
compress(S
PRequest request)
[2/19/2008 11:21:13 AM]: Progress: Import Completed.
[2/19/2008 11:21:13 AM]: Finish Time: 2/19/2008 11:21:13 AM.
[2/19/2008 11:21:13 AM]: Completed with 0 warnings.
[2/19/2008 11:21:13 AM]: Completed with 2 errors.
I also get an error if I try to import the old backup:
[2/19/2008 10:00:22 AM]: Start Time: 2/19/2008 10:00:22 AM.
[2/19/2008 10:00:22 AM]: Progress: Initializing Import.
[2/19/2008 10:00:22 AM]: Warning: Import requirement file c:\Data\SPBackup\Requireme
nts.xml was not found no verifications ran.
[2/19/2008 10:00:22 AM]: FatalError: Could not find file 'c:\Data\SPBackup\ExportSe
ttings.xml
'.
at System.IO.__Error.WinIOErr
or(Int32 errorCode, String maybeFullPath)
at System.IO.FileStream.Init(
String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy)
at System.IO.FileStream..ctor
(String path, FileMode mode, FileAccess access, FileShare share)
at System.IO.FileInfo.Open(Fi
leMode mode, FileAccess access)
at Microsoft.SharePoint.Deplo
yment.SPIm
port.Deser
ializeExpo
rtSettings
()
at Microsoft.SharePoint.Deplo
yment.SPIm
port.Run()
[2/19/2008 10:00:22 AM]: Progress: Import Completed.
[2/19/2008 10:00:22 AM]: Finish Time: 2/19/2008 10:00:22 AM.
[2/19/2008 10:00:22 AM]: Completed with 1 warnings.
[2/19/2008 10:00:22 AM]: Completed with 1 errors.
[2/19/2008 10:21:11 AM]: Start Time: 2/19/2008 10:21:11 AM.
[2/19/2008 10:21:11 AM]: Progress: Initializing Import.
[2/19/2008 10:21:11 AM]: Warning: Import requirement file c:\Data\SPBackup\Requireme
nts.xml was not found no verifications ran.
[2/19/2008 10:21:11 AM]: FatalError: Could not find file 'c:\Data\SPBackup\ExportSe
ttings.xml
'.
at System.IO.__Error.WinIOErr
or(Int32 errorCode, String maybeFullPath)
at System.IO.FileStream.Init(
String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy)
at System.IO.FileStream..ctor
(String path, FileMode mode, FileAccess access, FileShare share)
at System.IO.FileInfo.Open(Fi
leMode mode, FileAccess access)
at Microsoft.SharePoint.Deplo
yment.SPIm
port.Deser
ializeExpo
rtSettings
()
at Microsoft.SharePoint.Deplo
yment.SPIm
port.Run()
[2/19/2008 10:21:11 AM]: Progress: Import Completed.
[2/19/2008 10:21:11 AM]: Finish Time: 2/19/2008 10:21:11 AM.
[2/19/2008 10:21:11 AM]: Completed with 1 warnings.
[2/19/2008 10:21:11 AM]: Completed with 1 errors.
[2/19/2008 11:19:42 AM]: Start Time: 2/19/2008 11:19:42 AM.
[2/19/2008 11:19:42 AM]: Progress: Initializing Import.
[2/19/2008 11:19:42 AM]: Warning: Import requirement file c:\Data\SPBackup\Requireme
nts.xml was not found no verifications ran.
[2/19/2008 11:19:42 AM]: FatalError: Could not find file 'c:\Data\SPBackup\ExportSe
ttings.xml
'.
at System.IO.__Error.WinIOErr
or(Int32 errorCode, String maybeFullPath)
at System.IO.FileStream.Init(
String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy)
at System.IO.FileStream..ctor
(String path, FileMode mode, FileAccess access, FileShare share)
at System.IO.FileInfo.Open(Fi
leMode mode, FileAccess access)
at Microsoft.SharePoint.Deplo
yment.SPIm
port.Deser
ializeExpo
rtSettings
()
at Microsoft.SharePoint.Deplo
yment.SPIm
port.Run()
[2/19/2008 11:19:42 AM]: Progress: Import Completed.
[2/19/2008 11:19:42 AM]: Finish Time: 2/19/2008 11:19:42 AM.
[2/19/2008 11:19:42 AM]: Completed with 1 warnings.
[2/19/2008 11:19:42 AM]: Completed with 1 errors.
Start Free Trial