Skip to content

How to export the knowledge base from PC A (to import to PC B)? #16728

Answered by hc9701
hc9701 asked this question in Help
Discussion options

You must be logged in to vote

I think I might solve it and share some of my steps here. (The commands are not complete, you can complete them yourself.)
In ubuntu 24.04:
1.Go to the container using docker exec (you can use docker container ls to determine which container to go to)
2.export a sql file using pg_dump (psql can be used before to view the database you need to export)
3.use docker cp to copy the sql file in docker container to your own system(/home/user doesn't work in step 4, /tmp is OK).
4.import the sql file to postgreSQL.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by hc9701
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
1 participant