Skip to content

add flags --configs --rbac in clickhouse-backup server --watch command #955

@joserocha

Description

@joserocha

Hello,

I'm trying to start the API server using the '--watch' flag, but everytime I try to use the flag --configs, I receive this error.
Is it possible to backup the config files + RBAC + data files ?

sudo -u clickhouse /usr/local/bin/clickhouse-backup server --watch --watch-interval 1h --full-interval 24h --watch-backup-name-template {type}_{time:2001-01-01T00:00:0
0Z} --configs
Incorrect Usage: flag provided but not defined: -configs

NAME:
   clickhouse-backup server - Run API server

USAGE:
   clickhouse-backup server [command options] [arguments...]

OPTIONS:
   --config value, -c value                   Config 'FILE' name. (default: "/etc/clickhouse-backup/config.yml") [$CLICKHOUSE_BACKUP_CONFIG]
   --environment-override value, --env value  override any environment variable via CLI parameter
   --watch                                    Run watch go-routine for 'create_remote' + 'delete local', after API server startup
   --watch-interval value                     Interval for run 'create_remote' + 'delete local' for incremental backup, look format https://pkg.go.dev/time#ParseDuration
   --full-interval value                      Interval for run 'create_remote'+'delete local' when stop create incremental backup sequence and create full backup, look format https://pkg.go.dev/time#ParseDuration
   --watch-backup-name-template value         Template for new backup name, could contain names from system.macros, {type} - full or incremental and {time:LAYOUT}, look to https://go.dev/src/time/format.go for layout examples

2024/07/18 02:41:04.005467 error flag provided but not defined: -configs
```

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions