pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
DATA RESTORE PGADMINIII
2+ messages / 2 participants
[nested] [flat]

* DATA RESTORE PGADMINIII
@ 2016-04-21 13:28  AbdulShukoor Mohammed <mashukoor@OXFORDEA.COM>
  0 siblings, 1 reply; 2+ messages in thread

From: AbdulShukoor Mohammed @ 2016-04-21 13:28 UTC (permalink / raw)
  To: pgsql-bugs

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

 

Process returned exit code 1.

 

 

Regards,

AbdulShukoor Mohammed 

GM-IT | www.oxfordea.com <http://www.oxfordea.com/; 

Mobile: +966 (0) 554431667

eMail <mailto:mashukoors@gmail.com>  | LinkedIn
<https://sa.linkedin.com/pub/abdulshukoor-mohammed/2b/a92/974; 

 

 

 

Attachments:

image001.jpg (image/jpeg, 4.3K) download view image
^ permalink raw reply [nested|flat] 2+ messages in thread

* Re: DATA RESTORE PGADMINIII
@ 2016-04-21 21:18  John R Pierce <pierce@hogranch.com>
  parent: AbdulShukoor Mohammed <mashukoor@OXFORDEA.COM>
  0 siblings, 0 replies; 2+ messages in thread

From: John R Pierce @ 2016-04-21 21:18 UTC (permalink / raw)
  To: pgsql-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

^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~2016-04-21 21:18 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2016-04-21 13:28 DATA RESTORE PGADMINIII AbdulShukoor Mohammed <mashukoor@OXFORDEA.COM>
2016-04-21 21:18 ` John R Pierce <pierce@hogranch.com>

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