]> andersk Git - moira.git/blame - backup/restore_from_backup
Initial revision
[moira.git] / backup / restore_from_backup
CommitLineData
3a3bd871 1#!/bin/csh
2
3set path=(. /bin /usr/bin ~rtingres/bin)
4
5if ($user != smsdba) then
6 echo "This script must be run as smsdba"
7 exit 1
8endif
9
10createdb smstemp
11if ($status) then
12 echo "unable to create database"
13 exit 2
14endif
15
16cd /mit/smsdev/backup
17
18ingres smstemp < dodbbuild
19
20smsrestore
21
22ingres smstemp < dodbopt
23
24sysmod smstemp
25
26echo "When you are satisfied that this is correct, rename the smstemp database"
27echo "to sms by renaming directories under ~rtingres/data/default, then run"
28echo "'finddbs -r' to fix the ingres database database."
29
30exit 0
This page took 0.056112 seconds and 5 git commands to generate.