Issue Details (XML | Word | Printable)

Key: CORE-3462
Type: Improvement Improvement
Status: Closed Closed
Resolution: Fixed
Priority: Minor Minor
Assignee: Alexander Peshkov
Reporter: Jonathan Hill
Votes: 1
Watchers: 2

If you were logged in you would be able to see more operations.
Firebird Core

Add metadata only restore to Services API

Created: 05/May/11 12:12 AM   Updated: 18/Jan/16 05:08 PM
Component/s: None
Affects Version/s: 2.5.0
Fix Version/s: 2.5.1, 3.0 Alpha 1

QA Status: No test

 Description  « Hide
gbak allows you to restore a backup's metadata only, i.e. create a database without any user data, only metadata from the backup.

The Services API allows a metadata only backup with the isc_spb_bkp_metadata_only option set but there is no such option to perform a metadata only restore. I would anticipate e.g. isc_spb_res_metadata_only?

 All   Comments   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
Alexander Peshkov added a comment - 05/May/11 07:54 AM
The humor here is that if you use isc_spb_bkp_metadata_only option in SPB, passed to restore service, it will do exactly what you want - restore only metadata. Another question that a lot of tools (starting with our fbsvcmgr) do not let to specify backup option in restore request.
To avoid confusion I suggest to add isc_spb_res_metadata_only (== isc_spb_bkp_metadata_only) constant to public header and fbsvcmgr.