Received: from maia.hub.org (unknown [200.46.204.183]) by mail.postgresql.org (Postfix) with ESMTP id 30EA06337BE for ; Tue, 6 Apr 2010 03:27:07 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 97470-05 for ; Tue, 6 Apr 2010 06:26:56 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from rs47.luxsci.com (rs47.luxsci.com [65.61.166.88]) by mail.postgresql.org (Postfix) with ESMTP id 24529633FD4 for ; Tue, 6 Apr 2010 03:26:51 -0300 (ADT) Received: from gnanam (ABTS-TN-Static-186.58.165.122.airtelbroadband.in [122.165.58.186] (may be forged)) (authenticated bits=0) by rs47.luxsci.com (8.13.1/8.13.7) with ESMTP id o366QeeE002985; Tue, 6 Apr 2010 01:26:44 -0500 Reply-To: From: "Gnanakumar" To: "'Guillaume Lelarge'" , "'Kevin Grittner'" Cc: References: <009e01cad22e$a3121400$e9363c00$@com> <4BB5AD0C0200002500030365@gw.wicourts.gov> <4BB5F8F0.10908@lelarge.info> In-Reply-To: <4BB5F8F0.10908@lelarge.info> Subject: Re: Database clone stuck in the middle Date: Tue, 6 Apr 2010 11:56:34 +0530 Organization: Zoniac Software Private Limited Message-ID: <00b301cad552$1fc1ce70$5f456b50$@com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Mailer: Microsoft Office Outlook 12.0 Thread-Index: AcrSbSD5CX6tl/S5S0aJ/qbT91sbLAC5O6ZA Content-Language: en-us X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.11 tagged_above=-10 required=5 tests=BAYES_05=-1.11 X-Spam-Level: X-Archive-Number: 201004/33 X-Sequence-Number: 34127 Thank you very much for sharing this "screen" command. That's really helpful. -----Original Message----- From: Guillaume Lelarge [mailto:guillaume@lelarge.info]=20 Sent: Friday, April 02, 2010 7:32 PM To: Kevin Grittner Cc: pgsql-admin@postgresql.org; gnanam@zoniac.com Subject: Re: [ADMIN] Database clone stuck in the middle Le 02/04/2010 15:38, Kevin Grittner a =E9crit : > "Gnanakumar" wrote: > =20 >> I connect to our database which is hosted remotely using PuTTY >> thro SSH protocol. =20 > =20 >> my Internet got disconnected in the middle, >> so database cloning was also stuck in the middle. > =20 >> 4. Considering this Internet disconnection problem, what is the >> safest way to clone a database using CREATE DATABASE WITH TEMPLATE >> command, so that this will not happen in the future? > =20 > You putty to the server and run psql from a shell on the database > server? > =20 > If so, try putting the word "nohup" in front of "psql" -- that tells > the program to keep running even if the connection is lost. (It is > short for "no hangup", I believe.) > =20 Or use screen. --=20 Guillaume. http://www.postgresqlfr.org http://dalibo.com