Re: Need Database Backup

Поиск
Список
Период
Сортировка
От Melvin Davidson
Тема Re: Need Database Backup
Дата
Msg-id CANu8FiyX4w+=-sz+Yq9wCPTOGeovRtQS9hv+J_f==v+8508ebA@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Need Database Backup  (Adrian Klaver <adrian.klaver@aklaver.com>)
Ответы Re: Need Database Backup
Re: Need Database Backup
Re: Need Database Backup
Список pgsql-general
Adrian
From Murali N Rao 5:43 AM (4 hours ago)

>now i have installed new os and installed PGSQL again it working now but no data


On Sun, Aug 30, 2015 at 10:21 AM, Adrian Klaver <adrian.klaver@aklaver.com> wrote:
On 08/30/2015 07:13 AM, Melvin Davidson wrote:
You need to recreate the database to reload the data into so

    from the windows command line:
    C:\PostgresDB\bin\createdb.exe -U postgres <your db name>;

That assumes Postgres is running, which at this point seems not to be the case or at least is unproven.


    Then to restore the data from the sql backup
    C:\PostgresDB\bin\pg_restore.exe -U postgres <the sql backup file>

This will not work if the *.sql is a plain text file.






--
Adrian Klaver
adrian.klaver@aklaver.com



--
Melvin Davidson
I reserve the right to fantasize.  Whether or not you
wish to share my fantasy is entirely up to you.

В списке pgsql-general по дате отправления:

Предыдущее
От: Adrian Klaver
Дата:
Сообщение: Re: Need Database Backup
Следующее
От: "Charles Clavadetscher"
Дата:
Сообщение: Re: Need Database Backup