Beranda > Database > Backup Restore PostgreSQL CLI

Backup Restore PostgreSQL CLI

Hanya note untuk best practice :

Restore Postgresql :
#psql dbname < infile

Backup :
$ pg_dump -U {user-name} {source_db} -f {dumpfilename.sql}

Restore:
$ psql -U {user-name} -d {desintation_db}-f {dumpfilename.sql}

Thanks.

Regards,
Verrysoon
http://verrysoon.com

  1. Oktober 4, 2013 pukul 11:55 pm

    fantastic publish, very informative. I’m wondering why the opposite experts of this sector do not notice this. You must proceed your writing. I am confident, you have a huge readers’ base already!

  1. No trackbacks yet.

Tinggalkan Balasan

Isikan data di bawah atau klik salah satu ikon untuk log in:

Logo WordPress.com

You are commenting using your WordPress.com account. Logout / Ubah )

Gambar Twitter

You are commenting using your Twitter account. Logout / Ubah )

Foto Facebook

You are commenting using your Facebook account. Logout / Ubah )

Foto Google+

You are commenting using your Google+ account. Logout / Ubah )

Connecting to %s