Instalation batch file

From: Zlatko Matić <zlatko(dot)matic1(at)sb(dot)t-com(dot)hr>
To: <pgsql-general(at)postgresql(dot)org>
Subject: Instalation batch file
Date: 2005-08-03 21:29:46
Message-ID: 000f01c59873$5e8c4840$58221dc3@zlatkovyfkpgz6
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hello.

I would like to install database schema on a server using files with dumped schema and globals (produced by dumpall), that are placed on CD. The installation script (batch file) that restores these two files is also placed on the same CD, (let's say E:) in the same folder.

cd C:\Program Files\PostgreSQL\8.0\bin
psql -f E:\MYBASE_SHEMA.dumpall template1 -U zmatic
psql -f E:\MYBASE_SHEMA.dumpall template1 -U zmatic
vacuumdb -d MYBASE -U zmatic

But, what if CD is F: or some other unit ?
How could I change this batch file (Windows XP) to be able to recognize what is the actual path of the folder that containes these three files ?

Thanks in advance,

Zlatko

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Thomas Chille 2005-08-03 21:33:21 initskript after db start; locks on transactions
Previous Message Aaron Harsh 2005-08-03 21:18:33 Re: oids and pg_class_oid_index constraint