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

Allow for env file to specify tables to skip #79

Closed
audiodude opened this issue May 2, 2024 · 5 comments
Closed

Allow for env file to specify tables to skip #79

audiodude opened this issue May 2, 2024 · 5 comments
Assignees
Labels
enhancement New feature or request

Comments

@audiodude
Copy link

For WP1, we will have a very large (~50GB) table of data that is largely disposable. That is, it can easily be re-created completely in less than a day and contains no user data.

We would like to exclude this table from our database backups.

It seems that borgmatic supports an options key for MySQL/MariaDB databases (https://torsion.org/borgmatic/docs/how-to/backup-your-databases/#database-dump-hooks), and we can specify --ignore-table=wp1.too_large_table. So all we need is an env option like IGNORE_TABLES=name1,name2,name3 that will be passed through to the borgmatic config.

@audiodude
Copy link
Author

@benoit74

@kelson42 kelson42 added the enhancement New feature or request label May 2, 2024
@rgaudin
Copy link
Member

rgaudin commented May 2, 2024

@kelson42 what's the prio on this?

@kelson42
Copy link
Contributor

kelson42 commented May 2, 2024

@rgaudin If possible on your end, would be great to do right now so @audiodude and @benoit74 can continue to implement the DRP properly for WP1

@rgaudin
Copy link
Member

rgaudin commented May 2, 2024

Got it

@rgaudin rgaudin closed this as completed in be72dcd May 2, 2024
@rgaudin
Copy link
Member

rgaudin commented May 2, 2024

Done ; tested. Use DATABASES_OPTIONS to pass any option to mysqldump.

Example for a MariaDB:

-e DATABASES_OPTIONS="--ignore-table=cardshop.manager_organization --ignore-table=cardshop.manager_configuration --ignore-table=cardshop.manager_order --no-data"

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

No branches or pull requests

3 participants