Saturday, March 05, 2011

Postgres Backup CentOS

#su postgres

$ pg_dump -Ft mydb > db.tar
$ pg_restore -d newdb db.tar


References:
[1]http://linux.die.net/man/1/pg_dump
[2]http://linux.die.net/man/1/pg_restore

No comments:

Odoo 17 - Custom adds

    [1] Diario/Seq https://apps.odoo.com/apps/modules/17.0/sequence_for_journal