Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1iwBv5-0007R3-Nb for pgsql-general@arkaria.postgresql.org; Mon, 27 Jan 2020 21:27:44 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1iwBv3-0000kE-NQ for pgsql-general@arkaria.postgresql.org; Mon, 27 Jan 2020 21:27:41 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1iwBv3-0000k6-8M for pgsql-general@lists.postgresql.org; Mon, 27 Jan 2020 21:27:41 +0000 Received: from [2001:4d88:2000:96::2] (helo=ikarus.unix-solution.de) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1iwBv0-0001Mm-9u for pgsql-general@lists.postgresql.org; Mon, 27 Jan 2020 21:27:40 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=unix-solution.de; s=mx; h=Content-Transfer-Encoding:Content-Type: In-Reply-To:MIME-Version:Date:Message-ID:From:References:To:Subject:Sender: Reply-To:Cc:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help: List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=LkqmUb7K9pZEaToV5P5pkUHfpbSONgmOs5YhKQrS2/Q=; b=jkLIAQ0e6ZgP6o9xmMMHvnrByn I9JSWZ6lsPzwxo3xMwi+JKgtkaKzRmjFGfP5KXlQr3fv4c9znrLp37NGQKFcWN4vNY8bixLjH405r jkfgDZltdKRvyz+1quMsmInXjYdEaX77+mSpMuDAmPmDZTf3Tt6/ROP2qMlvbwE+M3KU=; Received: from x4e3736fe.dyn.telefonica.de ([78.55.54.254]:50418 helo=[192.168.30.172]) by ikarus.unix-solution.de with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1iwBuw-0005Y3-Jh for pgsql-general@lists.postgresql.org; Mon, 27 Jan 2020 22:27:34 +0100 Subject: Re: How to transfer databases form one server to other To: pgsql-general@lists.postgresql.org References: <157139E4A01D436A859FB6612AE6BBD7@dell2> <1102fee1-eebe-dbe2-63a2-2120380bb2f8@aklaver.com> <111D51B7C5C64419810F09C229E1D917@dell2> <23417975-69b8-e273-2a58-c65beb16decf@aklaver.com> <3877abba-8863-0e41-d368-adc2e648c240@aklaver.com> From: basti Message-ID: <52eb33b7-65bd-ed38-dd73-04c61a7a72e3@unix-solution.de> Date: Mon, 27 Jan 2020 22:27:34 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:72.0) Gecko/20100101 Thunderbird/72.0 MIME-Version: 1.0 In-Reply-To: <3877abba-8863-0e41-d368-adc2e648c240@aklaver.com> Content-Type: text/plain; charset=windows-1257; format=flowed Content-Transfer-Encoding: 7bit X-ACL-Warn: Max 0 failed recipients allowed X-Host-Lookup-Failed: Reverse DNS lookup failed for 2001:4d88:2000:96::2 (failed) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Am 27.01.20 um 21:47 schrieb Adrian Klaver: > On 1/26/20 10:56 PM, Andrus wrote: >> Hi! >> >>>> 3. Manually edit role definitions to delete role postgres since it >>>> exists >>>> in new server. >>> No need, it will throw a harmless error message and continue on. >> >> By my knowledge, pgAdmin executes script in single transaction and >> rolls it >> back on error. >> Should psql used or is there some option in pgadmin. > > There are options on pgAdmin: > https://www.pgadmin.org/docs/pgadmin4/4.17/restore_dialog.html > See: > > Single transaction > Exit on error > > Can't remember if you are taking a custom format backup or plain text. > If plain text you can use psql. If custom then will need to use pg_restore. > I have no read the fill post but perhaps netcat or ssh tunnel can be an option to tansfer db's from a to b.