clickhouse-backup icon indicating copy to clipboard operation
clickhouse-backup copied to clipboard

Add `backup_tables` into config, to allow similar behavior with `--table` CLI parameter

Open vanyasvl opened this issue 3 years ago • 3 comments

Now config has only skip_tables option to exclude tables form back. It'll be very useful to have bakup_tables option with of tables to backup in case we have many databases and tables and needs to backup only few.

vanyasvl avatar Dec 20 '21 11:12 vanyasvl

If I understood correctly, we already implement

clickhouse-backup create --tables=*.table_name1,another_pattern

Slach avatar Dec 20 '21 11:12 Slach

If I understood correctly, we already implement

clickhouse-backup create --tables=*.table_name1,another_pattern

Yes, but it's implemented via command line only, not via config. For example we have same typical backup script and different configs for the installations.

vanyasvl avatar Dec 20 '21 12:12 vanyasvl

use case is not clear why you can't use --table parameter in your backup script?

what is the difference from your side, between:

clickhouse-backup -c config1.yml create <backup>
clickhouse-backup -c config2.yml create <backup>
clickhouse-backup -c config3.yml create <backup>

and

clickhouse-backup -c config.yml create <backup> --table=pattern1
clickhouse-backup -c config.yml create <backup> --table=pattern2
clickhouse-backup -c config.yml create <backup> --table=pattern3

Slach avatar Dec 20 '21 14:12 Slach

Which version supports this feature now? backup_table.

AngelLittleChaochao avatar Aug 10 '22 10:08 AngelLittleChaochao

And if I use the API version, can I send one http request to backup table A, another http request to backup table B?

AngelLittleChaochao avatar Aug 10 '22 10:08 AngelLittleChaochao

i tried to plan to 2.0.0 (not released yer) @AngelLittleChaochao could you clear your use case?

Why you can't use table parameter for POST /backup/actions or POST /backup/create API calls? Did you read https://github.com/AlexAkulov/clickhouse-backup#api ?

Slach avatar Aug 10 '22 13:08 Slach

i tried to plan to 2.0.0 (not released yer) @AngelLittleChaochao could you clear your use case?

Why you can't use table parameter for POST /backup/actions or POST /backup/create API calls? Did you read https://github.com/AlexAkulov/clickhouse-backup#api ?

Thanks Slach for your response and reference link. It solved my problem.

AngelLittleChaochao avatar Aug 11 '22 06:08 AngelLittleChaochao

Let's close issue because @vanyasvl doesn't provide more context

Slach avatar Aug 11 '22 06:08 Slach