“Backup PostgreSQL e Restaurar Globais e Dados” Respostas de código

Backup PostgreSQL e Restaurar Globais e Dados

$ pg_dump -U postgres -h localhost -p 5433 --clean --file=sandbox.sql sandbox
$ pg_dumpall -U postgres -h localhost -p 5433 --clean --globals-only --file=globals.sql
Filthy Frog

Backup PostgreSQL e Restaurar Globais e Dados

$ psql -U postgres -h localhost -p 5433 < globals.sql
$ psql -U postgres -h localhost -p 5433 < sandbox.sql
Filthy Frog

Respostas semelhantes a “Backup PostgreSQL e Restaurar Globais e Dados”

Perguntas semelhantes a “Backup PostgreSQL e Restaurar Globais e Dados”

Mais respostas relacionadas para “Backup PostgreSQL e Restaurar Globais e Dados” em Sql

Procure respostas de código populares por idioma

Procurar outros idiomas de código