pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: John R Pierce <pierce@hogranch.com>
To: pgsql-bugs@postgresql.org
Subject: Re: DATA RESTORE PGADMINIII
Date: Thu, 21 Apr 2016 14:18:32 -0700
Message-ID: <571943A8.2040903@hogranch.com> (raw)
In-Reply-To: <50F88BDA2EA46648827F8B9625EFDCE4667528@mail.OXFORDEA.COM>
References: <50F88BDA2EA46648827F8B9625EFDCE4667528@mail.OXFORDEA.COM>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>

On 4/21/2016 6:28 AM, AbdulShukoor Mohammed wrote:
>
> Getting following error while restoring DATA from PGSQL folder:
>
> */C:\Program Files\PostgreSQL\9.5\pgsql\bin\pg_restore.exe --host 
> localhost --port 5432 --username "postgres" --dbname "servicedesk" 
> --role "postgres" --no-password  --format directory --verbose 
> "C:\Program Files\PostgreSQL\9.5\pgsql"/*
>
> */pg_restore: [directory archiver] could not open input file 
> "C:\Program Files\PostgreSQL\9.5\pgsql/toc.dat": No such file or 
> directory/*
>
> *//*
>


where was your backup stored by pg_dump?   "--format directory" doesn't 
get used much (I prefer --format compressed), but it generates a whole 
series of dat files in a given directory.   the backup CERTAINLY 
shouldn't have been stored anywhere in the \Program Files\Postgresql 
directory

-- 
john r pierce, recycling bits in santa cruz

view thread (2+ messages)

Message-ID: <571943A8.2040903@hogranch.com>
Permalink:  ../571943A8.2040903@hogranch.com/
Also on:    postgresql.org/message-id/571943A8.2040903@hogranch.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-bugs@postgresql.org
  Cc: pierce@hogranch.com
  Subject: Re: DATA RESTORE PGADMINIII
  In-Reply-To: <571943A8.2040903@hogranch.com>
  References: <50F88BDA2EA46648827F8B9625EFDCE4667528@mail.OXFORDEA.COM> <571943A8.2040903@hogranch.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox