Skip to content

Added an example of database and table mapping restoration #1139

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

CaptTofu
Copy link
Contributor

A commonly asked question and I decided having an example would be useful. This was tested using the clickhouse operator both database and backup containers of a node pod

@coveralls
Copy link

Pull Request Test Coverage Report for Build 14595523001

Details

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • 282 unchanged lines in 13 files lost coverage.
  • Overall coverage decreased (-1.9%) to 66.788%

Files with Coverage Reduction New Missed Lines %
cmd/clickhouse-backup/main.go 2 79.69%
pkg/clickhouse/clickhouse.go 3 76.0%
pkg/backup/create.go 4 74.85%
pkg/backup/delete.go 4 64.94%
pkg/storage/object_disk/object_disk.go 5 66.54%
pkg/config/config.go 8 72.66%
pkg/backup/restore.go 9 68.4%
pkg/status/status.go 9 72.85%
pkg/backup/backuper.go 17 72.31%
pkg/server/server.go 18 58.6%
Totals Coverage Status
Change from base Build 14509666786: -1.9%
Covered Lines: 9542
Relevant Lines: 14287

💛 - Coveralls

@@ -736,7 +736,7 @@ OPTIONS:
--environment-override value, --env value override any environment variable via CLI parameter
--table value, --tables value, -t value Restore only database and objects which matched with table name patterns, separated by comma, allow ? and * as wildcard
--restore-database-mapping value, -m value Define the rule to restore data. For the database not defined in this struct, the program will not deal with it.
--restore-table-mapping value, --tm value Define the rule to restore data. For the table not defined in this struct, the program will not deal with it.
--restore-table-mapping value, --tm value Define the rule to restore data. For the table not defined in this struct, the program will not deal with it. Note: only a table backup will work with this
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what mean "table backup" here? every backup contains tables

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

Successfully merging this pull request may close these issues.

3 participants