mirror of
https://github.com/netbirdio/docs.git
synced 2026-04-16 15:36:36 +00:00
dump postgres data with column names (#193)
This commit is contained in:
@@ -142,7 +142,7 @@ For migrating the Postgres data, we rely on the `pg_dump`, `sed`, and `sqlite3`
|
||||
|
||||
1. Export Postgres data
|
||||
```bash
|
||||
pg_dump --data-only --inserts "postgresql://<PG_USER>:<PG_PASSWORD>@<PG_HOST>:<PG_PORT>/<PG_DB_NAME>" > data.sql
|
||||
pg_dump --data-only --column-inserts "postgresql://<PG_USER>:<PG_PASSWORD>@<PG_HOST>:<PG_PORT>/<PG_DB_NAME>" > data.sql
|
||||
```
|
||||
|
||||
2. Convert exported Postgres data sql to Sqlite format
|
||||
|
||||
Reference in New Issue
Block a user