Pages

Monday, March 15, 2010

Sharepoint Back Up and Restore by Using Stsadm

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



Restore

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

taken from here

Tuesday, March 9, 2010

Create a batch file to do a sharepoint backup

Type the following to notpad

@echo off
echo ===============================================================
echo Back up the farm to \\portal\backup
echo ===============================================================
cd "C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\BIN"
@echo off
stsadm.exe -o backup -directory \\portal\backup -backupmethod full
echo completed
}

How to restore Sharepoint Services 3.0

1. Go to command prompt and change the directory to the following directory
C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\BIN>

2. Type the following command, and then press ENTER
stsadm -o restore -directory \\portal\backup -restoremethod overwrite

If the restore completes successfully, the command window displays the following text:

Completed with 0 warnings.
Completed with 0 errors.
Restore completed successfully.
-------------------------------------------------
Operation completed successfully.

How to backup Sharepoint Services 3.0

Back up a server farm by using the Stsadm command-line tool

1. On the drive on which SharePoint Products and Technologies is installed, change to the following directory.
%COMMONPROGRAMFILES%\Microsoft shared\Web server extensions\12\Bin.

example:
c:\Program Files\Common Files\Microsoft Shared\web server extensions\12\BIN>


2. Type the following command, and then press ENTER:
stsadm -o backup -directory <\\server name\folder name> -backupmethod full

example:
stsadm -o backup -directory \\portal\backup -backupmethod full

If the backup completes successfully, the command window displays the following text:


Completed with 0 warnings.
Completed with 0 errors.
Backup completed successfully.
-------------------------------------------------
Operation completed successfully.

how to install nrpe_nt

1. copy nrpe folder to c: or d:
2. go to command prompt
3. type as following command