Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1atLzo-0004Ak-QB for pgsql-bugs@arkaria.postgresql.org; Thu, 21 Apr 2016 21:18:44 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1atLzo-0001N1-DA for pgsql-bugs@arkaria.postgresql.org; Thu, 21 Apr 2016 21:18:44 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1atLzn-0001MM-Hq for pgsql-bugs@postgresql.org; Thu, 21 Apr 2016 21:18:43 +0000 Received: from hogranch.com ([75.101.82.47]) by magus.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1atLzi-0006xe-Uz for pgsql-bugs@postgresql.org; Thu, 21 Apr 2016 21:18:43 +0000 Received: from [192.168.0.2] (porker [192.168.0.2]) by hogranch.com (8.11.6/8.11.6) with ESMTP id u3LKIw832735 for ; Thu, 21 Apr 2016 13:18:58 -0700 Subject: Re: DATA RESTORE PGADMINIII To: pgsql-bugs@postgresql.org References: <50F88BDA2EA46648827F8B9625EFDCE4667528@mail.OXFORDEA.COM> From: John R Pierce Message-ID: <571943A8.2040903@hogranch.com> Date: Thu, 21 Apr 2016 14:18:32 -0700 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.7.2 MIME-Version: 1.0 In-Reply-To: <50F88BDA2EA46648827F8B9625EFDCE4667528@mail.OXFORDEA.COM> Content-Type: multipart/alternative; boundary="------------010009060601010905070909" X-HawgScanner-Information: Please contact the ISP for more information X-HawgScanner: Found to be clean X-Pg-Spam-Score: -1.4 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org This is a multi-part message in MIME format. --------------010009060601010905070909 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit 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 --------------010009060601010905070909 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: 8bit
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
--------------010009060601010905070909--