Subject | RE: [firebird-support] Re: Backup-Restore, without killing existing attachments. |
---|---|
Author | bogdan |
Post date | 2012-02-21T14:31:26Z |
Actually, active users stay connected to old renamed database.
It can happen only on linux, never on Windows.
Regards
Bogdan
maybe firebird developers can confirm this.
--- In firebird-support@yahoogroups.com
<mailto:firebird-support%40yahoogroups.com> , Elmar Haneke <elmar@...>
wrote:
It can happen only on linux, never on Windows.
Regards
Bogdan
>Hi, I get your point.restoring with the same database file name.
>But I wonder what can happen when we don't kill the existing clients before
>Actually I had a bad exprience on this :)on the newly restored database. (It's firebird 2.5.1)
>-One client remained active after a restore operation and continued to run
>-It generated ID numbers which was already consumed with others.it created were just not reachable anymore.
>-It did not generate any errors even on uniquely indexed rows, the records
>So I think every client should be disconnected before restoring and thisshould be a very strict rule for preventing any data loss or conflicts,
maybe firebird developers can confirm this.
--- In firebird-support@yahoogroups.com
<mailto:firebird-support%40yahoogroups.com> , Elmar Haneke <elmar@...>
wrote:
>[Non-text portions of this message have been removed]
>
> > I have a question on backup/restore.
> >
> > Think of a firebird classic on a linux box.
> >
> > -Do a backup with existing attachments
> > -After backup, Rename the old gdb file to something else
> > -Restore the backup file with the original gdb name.
>
> You have to kill all connected clients before starting backup and you
> have to prevent them from reconnecting until restore is complete. Else
> at least the updates done while backup/restore are lost.
>
> In Addition existing connections should prevent you from renaming the
> database.
>
> As an alternative you should consider if restore&rename is really
> required. Just run the backup and do an restore to an dummy database to
> verify backup file. It is not required to rebild database on each backup.
>
>
> Elmar
>