Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

backup / restore: add switch to process only METAdata of table(s) and skip it's DATA [CORE4343] #4665

Closed
firebird-automations opened this issue Feb 16, 2014 · 7 comments

Comments

@firebird-automations
Copy link
Collaborator

Submitted by: @pavel-zotov

Duplicates CORE2208

It will be useful to bypass handling DATA of some huge tables that are NOT parent to some other ones (e.g. have no link from some FKs).
For instance, in our production one of the tables consumes more than 60% of time to be restored (this is AUDIT table: it will never be *parent* for any kind of other tables).

I propose to add the switch like '-s table1[, -s table2[, -s .....]' that can occur many times in command that runs gbak and this switch will force engine to b/r only METADATA of corresponding table(s).
If any of such tables is PARENT for some other one(s), operation should be abandon.

====== Test Details ======

See core_2208.fbt

@firebird-automations
Copy link
Collaborator Author

Commented by: @pavel-zotov

PS. Also it will be very useful to have such key that will INCLUDE (rahter than BYPASS) only selected table(s) data (and for any other tables engine will b/r only METAdata; e.g. all of them will be "skipped" from b/r their data).

@firebird-automations
Copy link
Collaborator Author

Modified by: @dyemanov

Component: GBAK [ 10006 ]

summary: backup / restore speedup: add switch to process only METAdata of table(s) and skip it's DATA => backup / restore: add switch to process only METAdata of table(s) and skip it's DATA

@firebird-automations
Copy link
Collaborator Author

Modified by: @dyemanov

Link: This issue duplicates CORE2208 [ CORE2208 ]

@firebird-automations
Copy link
Collaborator Author

Modified by: @dyemanov

status: Open [ 1 ] => Resolved [ 5 ]

resolution: Duplicate [ 3 ]

@firebird-automations
Copy link
Collaborator Author

Commented by: Sean Leyne (seanleyne)

FYI, the feature to exclude/skip restoring data for selected tables is already available with the RedSoft database fork -- the option/switch named "-skip_data". The feature supports wildcard and regex to define the tables to be processed..

An appropriate name for the opposite switch could be "restore_only"

@firebird-automations
Copy link
Collaborator Author

Modified by: @pcisar

status: Resolved [ 5 ] => Closed [ 6 ]

@firebird-automations
Copy link
Collaborator Author

Modified by: @pavel-zotov

status: Closed [ 6 ] => Closed [ 6 ]

QA Status: Covered by another test(s)

Test Details: See core_2208.fbt

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant