Re: restore a dump db from tar file

From: "Albe Laurenz" <laurenz(dot)albe(at)wien(dot)gv(dot)at>
To: "Alain Roger *EXTERN*" <raf(dot)news(at)gmail(dot)com>, <pgsql-general(at)postgresql(dot)org>
Subject: Re: restore a dump db from tar file
Date: 2008-10-06 11:56:27
Message-ID: D960CB61B694CF459DCFB4B0128514C202965D86@exadv11.host.magwien.gv.at
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Alain Roger wrote:
> i backup my database "sewe" using a standard process.
> 1. it backups only database and not roles :-( roles are backuped separately.
> 2. backup is a tar file
> 3. backup command is : pg_dump -v -o -U myuser -ci -Ft -f sewe.tar sewe
>
> Question
> how can i restore it now ?
> could something like that could work on Windows XP ?
> createdb sewe
> gunzip -c sewe.tar | psql sewe

Something like
pg_restore -Ft sewe.tar

Yours,
Laurenz Albe

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Raymond O'Donnell 2008-10-06 12:07:01 Re: restore a dump db from tar file
Previous Message Henry Combrinck 2008-10-06 11:04:07 Looping through cursor row batches