The easiest way to make a full backup of a SharePoint database from one window and restore it to another

I need to make a full backup of a SharePoint application running on our production server on our test server running SharePoint.

I tried using Central Admin to backup from the prod server, backup and backup to the test server, but this does not work.

The easiest way to do this?

+3
source share
3 answers

Ahhh, SharePoint. Undocumented functions abound ...

, , stsadm ( stsadm ). - stsadm /.

SharePoint , ( ). :

Set Day=%date:~7,2%
Set Month=%date:~4,2%
Set Year=%date:~10,4%
Set DateStamp=%Year%_%Month%_%Day%

SET BackupFileName=BACKUP_FILE_NAME
SET SiteUrl=http://YOUR_PORTAL_URL

C: 
CD \Program Files\Common Files\Microsoft Shared\Web Server Extensions\12\BIN 
stsadm.exe -o backup -overwrite -url %SiteUrl% -filename C:\ScheduledTasks\Backups\%BackupFileName%_%DateStamp%.dat

.dat , .

, , , :

C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\12\BIN 
    stsadm.exe -o restore -url http://YOUR_PORTAL_URL -filename "C:\PATH_TO_BACKUP\BACKUP_FILE_TO_RESTORE.dat" -overwrite

, - .dat restore. , SSP - , URL-, .

, !

+3

stsadm works well, here is a blog post to view commands

0
source

Source: https://habr.com/ru/post/1707485/


All Articles