Backup / Restore Sharepoint Site using STSADM.EXE
How to take backup and restore your sharepoint site...Common Query and Simple Solution..
Follow the below steps
Step 1) Go To-----------------------------------------------------------------------------
command prompt and get to the following address where stsadm.exe utility exists
C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\BIN>
Step 2) For Backup ----------------------------------------------------------------------
C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\BIN>
STSADM.exe -o backup -url http://infml01190:4444/sites/TEST -filename myfile.dat
or
STSADM.exe -o backup -url http://infml01190:4444/sites/TEST -filename c:/myfile.dat
STSADM.exe -o backup -url http://infml01190:4444/sites/TEST -filename c:/myfile.bak
Operation completed successfully.
Step 3) To Restore------------------------------------------------------------------------
C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\BIN>
STSADM.exe -o restore -url http://infml01190:2008/sites/retest-filename myfile.dat -overwrite
or
STSADM.exe -o restore -url http://infml01190:2008/sites/retest-filename c:/myfile.dat -overwrite
STSADM.exe -o restore -url http://infml01190:2008/sites/retest-filename c:/myfile.bak-overwrite
Operation completed successfully.
------------------------------------------------------------------------------------
// More
When you back up by using the Stsadm command-line tool, you can back up individual aspects of your SharePoint Products and Technologies deployment. For example, you can back up an individual site collection or you can back up the entire farm.
To export sites from your SharePoint Products and Technologies deployment, you use the following Stsadm command.
Stsadm –o export –url-filename .cmp
To back up a site collection, you must use the following stsadm command.
stsadm –o backup –url-filename
To back up an individual database, Web application, or the entire farm, you can use the following Stsadm command.
stsadm –o backup –directory-backupmethod
To import sites to your SharePoint Products and Technologies deployment, you use the following Stsadm command.
Stsadm –o import –url-filename .cmp
To restore a site collection, you must use the following Stsadm command.
stsadm –o restore –url-filename
To restore an entire farm you can use the following Stsadm command.
stsadm –o restore –directory-restoremethod
To know more about parameters in details .refer http://technet.microsoft.com/en-us/library/cc263441.aspx
Note : It is always better and reliable to take back using command line Stsadm utility than CentralConfig UI option
Happy coding..
Follow the below steps
Step 1) Go To-----------------------------------------------------------------------------
command prompt and get to the following address where stsadm.exe utility exists
C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\BIN>
Step 2) For Backup ----------------------------------------------------------------------
C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\BIN>
STSADM.exe -o backup -url http://infml01190:4444/sites/TEST -filename myfile.dat
or
STSADM.exe -o backup -url http://infml01190:4444/sites/TEST -filename c:/myfile.dat
STSADM.exe -o backup -url http://infml01190:4444/sites/TEST -filename c:/myfile.bak
Operation completed successfully.
Step 3) To Restore------------------------------------------------------------------------
C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\BIN>
STSADM.exe -o restore -url http://infml01190:2008/sites/retest-filename myfile.dat -overwrite
or
STSADM.exe -o restore -url http://infml01190:2008/sites/retest-filename c:/myfile.dat -overwrite
STSADM.exe -o restore -url http://infml01190:2008/sites/retest-filename c:/myfile.bak-overwrite
Operation completed successfully.
------------------------------------------------------------------------------------
// More
When you back up by using the Stsadm command-line tool, you can back up individual aspects of your SharePoint Products and Technologies deployment. For example, you can back up an individual site collection or you can back up the entire farm.
To export sites from your SharePoint Products and Technologies deployment, you use the following Stsadm command.
Stsadm –o export –url
To back up a site collection, you must use the following stsadm command.
stsadm –o backup –url
To back up an individual database, Web application, or the entire farm, you can use the following Stsadm command.
stsadm –o backup –directory
To import sites to your SharePoint Products and Technologies deployment, you use the following Stsadm command.
Stsadm –o import –url
To restore a site collection, you must use the following Stsadm command.
stsadm –o restore –url
To restore an entire farm you can use the following Stsadm command.
stsadm –o restore –directory
To know more about parameters in details .refer http://technet.microsoft.com/en-us/library/cc263441.aspx
Note : It is always better and reliable to take back using command line Stsadm utility than CentralConfig UI option
Happy coding..
Comments