Skip to content

Commit 213ec81

Browse files
authored
Update data-sync docs (#41)
1 parent 1352f96 commit 213ec81

File tree

1 file changed

+4
-5
lines changed
  • docs/features/sharding/resharding

1 file changed

+4
-5
lines changed

docs/features/sharding/resharding/hash.md

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,21 +20,20 @@ PgDog has a command line interface you can call by running it directly:
2020
```bash
2121
pgdog data-sync \
2222
--from-database <name> \
23-
--from-user <name> \
2423
--to-database <name> \
25-
--to-user <name> \
26-
--publication <publication>
24+
--publication <publication> \
2725
```
2826

2927
Required (*) and optional parameters for this command are as follows:
3028

3129
| Option | Description |
3230
|-|-|
3331
| `--from-database`* | Name of the source database cluster. |
34-
| `--from-user`* | Name of the user configured in `users.toml` for the source database cluster. |
3532
| `--to-database`* | Name of the destination database cluster. |
36-
| `--to-user`* | Name of the user configured in `users.toml` for the destination database cluster. |
3733
| `--publication`* | Name of the Postgres [publication](schema.md#publication) for tables to be copied and sharded. It should exist on the **source** database. |
34+
| `--replication-slot` | Name of the replication slot to use (and create if it doesn't exist) for syncing real-time changes. |
35+
| `--replicate-only` | Don't copy data, just stream changes from the replication slot. |
36+
| `--sync-only` | Perform the initial data sync only and exit. |
3837

3938
## How it works
4039

0 commit comments

Comments
 (0)