Subject | Re: gbak restore suddenly stops working |
---|---|
Author | Adam |
Post date | 2006-04-05T00:21:58Z |
--- In firebird-support@yahoogroups.com, "Bob Murdoch"
<mailgroups@...> wrote:
e:\firebird\bin\gbak.exe -C -user sysdba -password masterkey -p 8192
-o -v -y f:\ib\company\Logs\RestoreLog.txt
f:\ib\company\backup\company.fdb.Bak
localhost:f:\ib\company\RestoreTest\company.fdb
Also make sure of the obvious, this will fail if the fdb file already
exists or if the service is not running etc.
Adam
<mailgroups@...> wrote:
>Is the server running terminal services, if so change the line to:
> I have multiple development databases that are backed-up and restored
> every night via scripts. This morning, I find that all of the
> databases were backed up successfully, but none of them restored.
> There were no changes to the scripts. The command in the script looks
> like this:
>
> e:\firebird\bin\gbak.exe -C -user sysdba -password masterkey -p 8192
> -o -v -y f:\ib\company\Logs\RestoreLog.txt
> f:\ib\company\backup\company.fdb.Bak
> f:\ib\company\RestoreTest\company.fdb
>
> The RestoreLog.txt shows this:
>
> gbak: opened file f:\ib\company\backup\company.fdb.Bak
> gbak: transportable backup -- data in XDR format
> gbak: backup file is compressed
> gbak: ERROR: unavailable database
> gbak: ERROR: failed to create database
> f:\ib\company\RestoreTest\company.fdb
> gbak: Exiting before completion due to errors
>
> The database in this case is very small - 28MB. The backup file is
> 18.6MB. There is plenty of room on the drive F: (800MB). The folders
> are not read only. There is no file in the RestoreTest folder.
>
> This is a Windows 2000 server running FB1.5 SS.
>
> I am stumped.
e:\firebird\bin\gbak.exe -C -user sysdba -password masterkey -p 8192
-o -v -y f:\ib\company\Logs\RestoreLog.txt
f:\ib\company\backup\company.fdb.Bak
localhost:f:\ib\company\RestoreTest\company.fdb
Also make sure of the obvious, this will fail if the fdb file already
exists or if the service is not running etc.
Adam