sharepoint Backup and Restore using STSADM
2010-10-25 14:50
741 查看
There are three ways you can backup your SharePoint environment:
1, Using the Central Administration user interface
2, Using STSADM
3, Using automated backup scripts
I
personally never use the first option. Through my experiences with
backing up MOSS and WSS Farms, I learned that the best way to run a
backup and restore is through the STSADM utility. Some may argue this,
but I feel extremely comfortable with STSADM since I use it for almost
all my SharePoint operations, so I tend to stick with it. Also, the
admin interface failed me once when I was restoring an entire farm,
whereas the STSADM utility has never failed me yet.
So what are the types of backups we can perform. There are two types:
1, Full backup
2, Differential backup
Before
you create a differential backup however, you need to at least perform
a full backup for the first time. Since this post is talking about how
to run backup and restore using STSADM, I'm going to skip the
instructions on how to do it through the admin interface; it's pretty
much self-explanatory, so I'm sure you can figure it out yourself.
So here are the command lines you need to know to perform a backup:
To backup a site collection, use the following command line:
To backup an individual database, web application, or entire farm, use the following command line:
Now that you backed up your farm, it's time to restore it. Use the following command lines to accomplish this:
To restore a site collection, use the following command line:
To restore an entire farm, use the following command line:
So
let's say now you want to migrate data from one SharePoint Server to
another. You always have the option of using Export and Import, which I
always like to use. Note that this tool will only migrate sites.
To export your sites, use the following command line:
To import your site, use the following command line:
So
as you can see, these command lines are pretty easy. Why trouble
yourself with a thousand clicks in the admin interface when you have
this beautiful utility available :) In the next post, I'll talk about
how you can backup and restore your SharePoint farm using Microsoft SQL
Server Backup and Restore.
1, Using the Central Administration user interface
2, Using STSADM
3, Using automated backup scripts
I
personally never use the first option. Through my experiences with
backing up MOSS and WSS Farms, I learned that the best way to run a
backup and restore is through the STSADM utility. Some may argue this,
but I feel extremely comfortable with STSADM since I use it for almost
all my SharePoint operations, so I tend to stick with it. Also, the
admin interface failed me once when I was restoring an entire farm,
whereas the STSADM utility has never failed me yet.
So what are the types of backups we can perform. There are two types:
1, Full backup
2, Differential backup
Before
you create a differential backup however, you need to at least perform
a full backup for the first time. Since this post is talking about how
to run backup and restore using STSADM, I'm going to skip the
instructions on how to do it through the admin interface; it's pretty
much self-explanatory, so I'm sure you can figure it out yourself.
So here are the command lines you need to know to perform a backup:
To backup a site collection, use the following command line:
stsadm -o backup -url <URL of the site collection> -filename <name of the backup file>
To backup an individual database, web application, or entire farm, use the following command line:
stsadm -o backup -directory <UNC path or local drive> -backupmethod <full or differential>
Now that you backed up your farm, it's time to restore it. Use the following command lines to accomplish this:
To restore a site collection, use the following command line:
stsadm -o restore -url <URL of site collection> -filename <name of backup file>
To restore an entire farm, use the following command line:
stsadm -o restore -directory <UNC path or local drive> -restoremethod <overwrite or new>
So
let's say now you want to migrate data from one SharePoint Server to
another. You always have the option of using Export and Import, which I
always like to use. Note that this tool will only migrate sites.
To export your sites, use the following command line:
stsadm -o export -url <URL> -filename <FileName>.cmp
To import your site, use the following command line:
stsadm -o import -url <URL> -filename <FileName>.cmp
So
as you can see, these command lines are pretty easy. Why trouble
yourself with a thousand clicks in the admin interface when you have
this beautiful utility available :) In the next post, I'll talk about
how you can backup and restore your SharePoint farm using Microsoft SQL
Server Backup and Restore.
相关文章推荐
- Backup and restore of FAST Search for SharePoint 2010
- Backup a farm by using SharePoint 2013 Central Administration and the Error Solution
- Backup and Restore in SharePoint 2010
- SharePoint Use backup, restore and export
- Step By Step Guide To Create Physical Standby Database Using RMAN Backup and Restore
- Force stop and then start a full crawl on all content sources in a SharePoint 2010 farm using PowerShell(转)
- Creating and Using a New Content Type in SharePoint 2007(zhuan:http://www.sharepointproconnections.com/article/sharepoint-portal
- Understanding and Using the SharePoint 2013 REST Interface
- How to Back up and restore SharePoint 2013 using a VSS requestor
- Developing SharePoint WebParts using User Controls and Web Applications
- csharp: SQL Server 2005 Database Backup and Restore using C#
- How to Integrate SAP Business Data Into SharePoint 2010 Using Business Connectivity Services and LINQ to SAP
- SharePoint PowerShell命令系列 (1) Backup-SPSite & Restore-SPSite
- Sharepoint MOSS stsadm常用命令汇总
- SharePoint Stsadm command
- Sharepoint MOSS stsadm 常用命令汇总
- Step By Step Guide To Create Physical Standby Database Using RMAN Backup and Restore (Doc ID 469493.
- Backup and Restore MySQL Database Using mysqldump
- Uploading Files in SharePoint 2013 using CSOM and REST
- Backup and Restore MySQL Database Using mysqldump