pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Gnanakumar <gnanam@zoniac.com>
To: 'Guillaume Lelarge' <guillaume@lelarge.info>
To: 'Kevin Grittner' <Kevin.Grittner@wicourts.gov>
Cc: pgsql-admin@postgresql.org
Subject: Re: Database clone stuck in the middle
Date: Tue, 6 Apr 2010 11:56:34 +0530
Message-ID: <00b301cad552$1fc1ce70$5f456b50$@com> (raw)
In-Reply-To: <4BB5F8F0.10908@lelarge.info>
References: <009e01cad22e$a3121400$e9363c00$@com>
	<4BB5AD0C0200002500030365@gw.wicourts.gov>
	<4BB5F8F0.10908@lelarge.info>

Thank you very much for sharing this "screen" command.  That's really
helpful.

-----Original Message-----
From: Guillaume Lelarge [mailto:guillaume@lelarge.info] 
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 écrit :
> "Gnanakumar" <gnanam@zoniac.com> 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




view thread (11+ messages)

Message-ID: <00b301cad552$1fc1ce70$5f456b50$@com>
Permalink:  ../00b301cad552$1fc1ce70$5f456b50$@com/
Also on:    postgresql.org/message-id/00b301cad552$1fc1ce70$5f456b50$@com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-admin@postgresql.org
  Cc: gnanam@zoniac.com, guillaume@lelarge.info, Kevin.Grittner@wicourts.gov
  Subject: Re: Database clone stuck in the middle
  In-Reply-To: <00b301cad552$1fc1ce70$5f456b50$@com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

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