Skip to content

Add switch to gbak to specify initial "Oldest Transaction Number" value on Restore [CORE6121] #6370

Open
@firebird-automations

Description

@firebird-automations

Submitted by: @livius2

Votes: 2

Please add switch to gbak to restore database with specified transaction number.
E.g. Interbase have this as "-START(ING_TRANS)" the name can be different.
I suppose it is very simple to implement as already during restore Firebird start this numbering from 1. Now it should take into account if start it from 1 or specified value from the parameter.

gbak -c -v -START 123456789

and database after restore looks like

Database header page information:
Flags 0
Checksum 12345
Write timestamp Aug 9, 2019 15:17:08
Page size 4096
ODS version 16.0
Oldest transaction 123456790 <- THE SPECIFIED NUMBER +1
Oldest active 123456791
Oldest snapshot 123456791
Next transaction 123456850
Sequence number 0
Next attachment ID 0
Implementation ID 16
Shadow count 0
Page buffers 2048
Next header page 0
Database dialect 3
Creation date Aug 9, 2019 15:17:07
Backup timestamp Aug 9, 2019 15:17:08
Attributes force write

Variable header data:
    Sweep interval:         20000
    \*END\*

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions