forked from Ed-Fi-Exchange-OSS/Suite-3-Performance-Testing
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathRestoreSqlDatabases-v3.sql
More file actions
29 lines (24 loc) · 1.49 KB
/
Copy pathRestoreSqlDatabases-v3.sql
File metadata and controls
29 lines (24 loc) · 1.49 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
-- SPDX-License-Identifier: Apache-2.0
-- Licensed to the Ed-Fi Alliance under one or more agreements.
-- The Ed-Fi Alliance licenses this file to you under the Apache License, Version 2.0.
-- See the LICENSE and NOTICES files in the project root for more information.
-- This script restores initial-state databases on the Azure SQL Server VM. It assumes the *.bak files have been copied into the VM under
-- F:\Database Backups\
-- and restores them to the data disk at F:\Data.
RESTORE DATABASE EdFi_Admin FROM DISK = 'F:\Database Backups\EdFi_Admin.bak'
WITH
MOVE 'EdFi_Admin' TO 'F:\DATA\EdFi_Admin.mdf',
MOVE 'EdFi_Admin_log' TO 'F:\DATA\EdFi_Admin_log.ldf';
RESTORE DATABASE EdFi_Security FROM DISK = 'F:\Database Backups\EdFi_Security.bak'
WITH
MOVE 'EdFi_Security' TO 'F:\DATA\EdFi_Security.mdf',
MOVE 'EdFi_Security_log' TO 'F:\DATA\EdFi_Security_log.ldf';
RESTORE DATABASE EdFi_Ods_Sandbox_populatedSandbox FROM DISK = 'F:\Database Backups\EdFi_Ods_Sandbox_populatedSandbox.bak'
WITH
MOVE 'EdFi_Ods_Populated_Template' TO 'F:\DATA\EdFi_Ods_Sandbox_populatedSandbox.mdf',
MOVE 'EdFi_Ods_Populated_Template_log' TO 'F:\DATA\EdFi_Ods_Sandbox_populatedSandbox_log.ldf',
REPLACE;
RESTORE DATABASE EdFi_Ods_Sandbox_minimalSandbox FROM DISK = 'F:\Database Backups\EdFi_Ods_Sandbox_minimalSandbox.bak'
WITH
MOVE 'EdFi_Ods_Minimal_Template' TO 'F:\DATA\EdFi_Ods_Sandbox_minimalSandbox.mdf',
MOVE 'EdFi_Ods_Minimal_Template_log' TO 'F:\DATA\EdFi_Ods_Sandbox_minimalSandbox_log.ldf';