Received: from maia.hub.org (unknown [200.46.204.183]) by mail.postgresql.org (Postfix) with ESMTP id 54BBF634965 for ; Fri, 2 Apr 2010 11:02:37 -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 70952-02 for ; Fri, 2 Apr 2010 14:02:26 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from sd-17937.dedibox.fr (sd-17937.dedibox.fr [88.191.100.74]) by mail.postgresql.org (Postfix) with ESMTP id E00DD632621 for ; Fri, 2 Apr 2010 11:02:26 -0300 (ADT) Received: from [192.168.10.3] (ASte-Genev-Bois-153-1-79-201.w86-203.abo.wanadoo.fr [86.203.225.201]) by sd-17937.dedibox.fr (Postfix) with ESMTPA id 900543B8F5; Fri, 2 Apr 2010 16:02:24 +0200 (CEST) Message-ID: <4BB5F8F0.10908@lelarge.info> Date: Fri, 02 Apr 2010 16:02:24 +0200 From: Guillaume Lelarge User-Agent: Mozilla/5.0 (X11; U; Linux i686; fr; rv:1.9.1.9) Gecko/20100317 Thunderbird/3.0.4 MIME-Version: 1.0 To: Kevin Grittner CC: pgsql-admin@postgresql.org, gnanam@zoniac.com Subject: Re: Database clone stuck in the middle References: <009e01cad22e$a3121400$e9363c00$@com> <4BB5AD0C0200002500030365@gw.wicourts.gov> In-Reply-To: <4BB5AD0C0200002500030365@gw.wicourts.gov> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit 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/11 X-Sequence-Number: 34105 Le 02/04/2010 15:38, Kevin Grittner a écrit : > "Gnanakumar" wrote: > >> I connect to our database which is hosted remotely using PuTTY >> thro SSH protocol. > >> my Internet got disconnected in the middle, >> so database cloning was also stuck in the middle. > >> 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? > > You putty to the server and run psql from a shell on the database > server? > > 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.) > Or use screen. -- Guillaume. http://www.postgresqlfr.org http://dalibo.com