Skip to content

Commit 751257a

Browse files
authored
Update add_remove_replica.md
updated clickhouse-backup syntax for rbac and schema backup/restore
1 parent b3c4a9d commit 751257a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

content/en/altinity-kb-setup-and-maintenance/altinity-kb-data-migration/add_remove_replica.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,9 +101,9 @@ clickhouse-client --host localhost --port 9000 -mn < schema.sql
101101
- Using `clickhouse-backup` to copy the schema of a replica to another is also convenient and moreover if [using Atomic database](/engines/altinity-kb-atomic-database-engine/) with `{uuid}` macros in [ReplicatedMergeTree engines](https://www.youtube.com/watch?v=oHwhXc0re6k):
102102

103103
```bash
104-
sudo -u clickhouse clickhouse-backup --schema --rbac create_remote full-replica
104+
sudo -u clickhouse clickhouse-backup create --schema --rbac rbac_and_schema
105105
# From the destination replica
106-
sudo -u clickhouse clickhouse-backup --schema --rbac restore_remote full-replica
106+
sudo -u clickhouse clickhouse-backup restore --schema --rbac rbac_and_schema
107107
```
108108

109109
### Using `altinity operator`

0 commit comments

Comments
 (0)