Skip to content

Commit 955bacb

Browse files
Enhance notes for restoring replicas with ON CLUSTER
Updated notes on restoring replicas to include ON CLUSTER modifier.
1 parent 0003443 commit 955bacb

File tree

1 file changed

+3
-2
lines changed
  • content/en/altinity-kb-setup-and-maintenance/altinity-kb-data-migration

1 file changed

+3
-2
lines changed

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,9 +60,10 @@ and attach volumes (PVC) to a service pod.
6060

6161
NOTES:
6262

63-
1. You can build a script to run restore replica commands over all replicated tables by query:
63+
1. To restore metadata on all cluster nodes by a single command, use `ON CLUSTER` modifier for the RESTORE REPLICA command.
64+
2. You can build a script to run restore replica commands over all replicated tables by query:
6465
```
65-
select 'SYSTEM RESTORE REPLICA ' || database || '.' || table || ';'
66+
select 'SYSTEM RESTORE REPLICA ' || database || '.' || table || ' ON CLUSTER {cluster} ;'
6667
from system.tables
6768
where engine ilike 'Replicated%'
6869
```

0 commit comments

Comments
 (0)