|Subject||RE: [firebird-support] FB 2.5 shutdown & restore question|
> During restore DB is itself in single-user mode, so, noone can connect until restore finishes.Is this new for 2.x? I know we could connect during a restore under 1.5.
From: email@example.com [mailto:firstname.lastname@example.org] On Behalf Of Dmitry Kuzmenko
Sent: Wednesday, April 03, 2013 5:11 PM
Subject: Re: [firebird-support] FB 2.5 shutdown & restore question
Wednesday, April 3, 2013, 11:09:33 PM, you wrote:
RD> gfix -shut single -force 1 server:/opt/firebird/db/clone.fdb
RD> rm -fv /opt/firebird/db/clone.fdb
RD> gbak -v -use_all_space -r /mnt/usb/firebird/clone.fbk
RD> gfix -online normal server:/opt/firebird/db/clone.fdb
RD> Target shutdown mode is invalid for database
point 1 - shutdown state is not stored into backup.
During restore DB is itself in single-user mode, so, noone can connect
until restore finishes. If there was error, gbak will not turn
db into online state (to indicate error).
Also, Sean suggested correct scenario, because, when you delete
DB on Linux, and there is at least 1 connected user (with single-mode
shutdown), and create new DB with the same name (by restore),
there will be 2 different (!!!) db files - old one and new one.
I don't remember what problems this may lead to, but suggest to avoid
Dmitry Kuzmenko, www.ib-aid.com