Hi all,
I need to backup and restore a DB.
In this particular case the data in the database is not important (strange hum...) but only the schema to put new data...
I m thinking use the pg_dump:
pg_dump -c -C -s schema > file.out
With this i have in file.out the schema, correct?
So, to restore the db from scratch, for example to a new system, what should i do?
it automatically creates all users, rolls, permissions etc?How?
What is the best way of doing it?
Many thanks
I need to backup and restore a DB.
In this particular case the data in the database is not important (strange hum...) but only the schema to put new data...
I m thinking use the pg_dump:
pg_dump -c -C -s schema > file.out
With this i have in file.out the schema, correct?
So, to restore the db from scratch, for example to a new system, what should i do?
it automatically creates all users, rolls, permissions etc?How?
What is the best way of doing it?
Many thanks