This article is half-done without your Comment! *** Please share your thoughts via Comment ***
Recently, I shared an article about copy your full database from one server to another server.
PostgreSQL: Copy Database to another Server in Windows (pg_dump – backup & restore)
I found one question on PostgreSQL FB Group like “How to take a backup of a table in PostgreSQL.”
You can do this exercise using pg_dump utility and pgAdmin tool.
Using pgAdmin tool:
Right-click on a table and select backup option. In Dump Option window, you can find an option like backup Only schema, backup Only Data. Enter your file name path, select backup mode as plain text and take the backup of your table. You can restore this table in any database.
Using psql, pg_dump utility:
1 2 |
\9.5\bin>pg_dump -U User_name -d database_name -t public.my_table > f:\my_table.sql Password:**** |