Received: from maia.hub.org (unknown [200.46.204.183]) by mail.postgresql.org (Postfix) with ESMTP id 0252C633F13 for ; Sat, 3 Apr 2010 01:53:50 -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 23904-02 for ; Sat, 3 Apr 2010 04:53:39 +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 69F936340C1 for ; Sat, 3 Apr 2010 01:53:39 -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 o334rUXT013544; Fri, 2 Apr 2010 23:53:32 -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: Sat, 3 Apr 2010 10:23:25 +0530 Organization: Zoniac Software Private Limited Message-ID: <010e01cad2e9$9a8f5ca0$cfae15e0$@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/qbT91sbLAAfBf4Q Content-Language: en-us X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-2.599 tagged_above=-10 required=5 tests=BAYES_00=-2.599 X-Spam-Level: X-Archive-Number: 201004/14 X-Sequence-Number: 34108 I cannot use screen, since my database server is hosted remotely. I = have only command-line access to my server by PuTTY. -----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