Mic92 created page: home

This commit is contained in:
Jörg Thalheim 2014-08-18 14:40:11 +02:00
parent e9aaf49c25
commit 4d010a9974
1 changed files with 2 additions and 2 deletions

View File

@ -15,8 +15,8 @@ $ sudo psql -h postgres -U postgres
psql> \l # list databases
psql> \c <database> # connect to database
psql> \d # show tables
$ sudo pg_dump -h postgres -U postgres <dbname> > dump.sql
$ sudo psql -h postgres -U postgres < dump.sql
$ sudo pg_dump -h postgres -U postgres <dbname> > dump.sql # backup
$ sudo psql -h postgres -U postgres < dump.sql # restore
```