Microsoft KB Archive/292719

= How to back up and restore server data in SharePoint Portal Server 2001 by using the Msdmback.vbs script =

Article ID: 292719

Article Last Modified on 5/14/2007

-

APPLIES TO


 * Microsoft SharePoint Portal Server 2001

-



This article was previously published under Q292719



SUMMARY
This article describes the Msdmback.vbs script that SharePoint Portal Server contains, which you can use to back up and restore the server data. You can schedule this script by using Windows 2000 Task Scheduler for regular, automated backups.



MORE INFORMATION
To manually back up a server by using the Msdmback.vbs script:  Locate the following folder:

\SharePoint Portal Server\Bin

 At a command prompt, type:

cscript msdmback.vbs /b \



For example, if you have installed the SharePoint Portal Server program files to the D drive, and you want to create a backup image named Backup.bak in the d:\Spsback folder type the following command:

cscript msdmback.vbs /b d:\spsback\backup.bak

Note If you attempt to create a scheduled task by using this command line, the first backup succeeds, but all subsequent backups do not respond if you do not remove the previous backup image. This behavior can occur because the  parameter must not reference a file that currently exists. If you attempt to back up to a file that already exists, the backup operation does not respond and you may receive the &quot;Error 80070050 (The file exists)&quot; error message.

To work around this behavior, you can create a batch file that moves, renames or deletes the previous backup image before you create the new backup image. You can use this batch file for the scheduled task.

The following text is an example of a batch file that renames the previous backup image:

echo off move d:\spsback\backup.bak d:\spsback\backup.old c:\winnt\system32\cscript &quot;d:\program files\sharepoint portal server\bin\msdmback.vbs&quot; /b d:\spsback\backup.bak&quot; SharePoint Portal Server only enables you to backup to a hard disk. To obtain the best protection for your data, Microsoft recommends that you use the Windows 2000 Backup utility or a third-party utility to save the backup image created with Msdsmback.vbs to tape. In addition, you can move the backup image to another location either manually or by using a batch file.

You can use the Windows 2000 Backup utility to back up the operating system; however, do not use the Windows 2000 Backup utility to back up SharePoint Portal Server data. Although the backup process completes, the backup utility does not back up all required data for SharePoint Portal Server. A subsequent restore by using this utility does not respond.

Additional query words: SPSexch2kp2w error 80070050

Keywords: kbinfo KB292719

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.