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 1gufYB-00063v-US for pgsql-admin@arkaria.postgresql.org; Fri, 15 Feb 2019 15:37:16 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1gufY9-0002My-H2 for pgsql-admin@arkaria.postgresql.org; Fri, 15 Feb 2019 15:37:13 +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 1gufY9-0002Mm-4i for pgsql-admin@lists.postgresql.org; Fri, 15 Feb 2019 15:37:13 +0000 Received: from hermes.gatewaynet.com ([193.92.121.98]) by makus.postgresql.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gufY4-0003M2-IG for pgsql-admin@lists.postgresql.org; Fri, 15 Feb 2019 15:37:11 +0000 Received: from smadev.internal.net (pc131.internal.net [10.9.200.131]) by hermes.gatewaynet.com (8.14.3/8.14.3/Debian-9.4) with ESMTP id x1FFavFT022176 for ; Fri, 15 Feb 2019 17:37:02 +0200 Received: from smadev.internal.net (smadev [10.9.200.131]) by smadev.internal.net (8.15.2/8.15.2) with ESMTP id x1FFavcp005662 for ; Fri, 15 Feb 2019 17:36:57 +0200 (EET) (envelope-from achill@matrix.gatewaynet.com) Subject: Re: help requested on archive_command To: pgsql-admin@lists.postgresql.org References: From: Achilleas Mantzios Message-ID: Date: Fri, 15 Feb 2019 17:36:57 +0200 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:60.0) Gecko/20100101 Thunderbird/60.3.2 MIME-Version: 1.0 In-Reply-To: Content-Type: multipart/alternative; boundary="------------DE9E9B974900D08D3DB29DA4" Content-Language: en-US X-Virus-Scanned: clamav-milter 0.98.7 at hermes X-Virus-Status: Clean X-Spam-Status: No, score=-27.0 required=5.0 tests=ALL_TRUSTED,DYN_HAM_COORD, DYN_HAM_IT,DYN_HAM_NAUTICAL,DYN_SPAM_MED6,HTML_MESSAGE autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on hermes.gatewaynet.com List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk This is a multi-part message in MIME format. --------------DE9E9B974900D08D3DB29DA4 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit On 15/2/19 5:30 μ.μ., Mark Steben wrote: > Good morning, >     We run postgres 9.4.  We will be moving two of our major databases from our current datacenter to an outsourced datacenter.  To do this move I will be using our current logshipping application, > including a command file executed by the archive_command config.  Currently we use this file to logship to 2 other servers in our network.  I need to modify that command to (temporarily) 2 more > servers in the new datacenter, making a total of 4. >    My question is: can I concatenate the archive command like we can concatenate commands in linux.  So this would look like:    'sh /homedirectory/logshipp.to.2.old,sh %p %f  ; sh > /homedirectory/logshipp.to.2.new.sh % p %f' >     or > do I need to simply add the 2 new servers to the logshipp.to.2.old.sh script? Maybe && would make more sense, if it is mandatory that all of them succeed. > > All comments welcome.  thank you > > -- > *Mark Steben* >  Database Administrator > @utoRevenue | Autobase > CRM division of Dominion Dealer Solutions > 95D Ashley Ave. > West Springfield, MA 01089 > t: 413.327-3045 > f: 413.383-9567 > > www.fb.com/DominionDealerSolutions > www.twitter.com/DominionDealer > www.drivedominion.com > > > > > -- Achilleas Mantzios IT DEV Lead IT DEPT Dynacom Tankers Mgmt --------------DE9E9B974900D08D3DB29DA4 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: 8bit
On 15/2/19 5:30 μ.μ., Mark Steben wrote:
Good morning,
    We run postgres 9.4.  We will be moving two of our major databases from our current datacenter to an outsourced datacenter.  To do this move I will be using our current logshipping application, including a command file executed by the archive_command config.  Currently we use this file to logship to 2 other servers in our network.  I need to modify that command to (temporarily) 2 more servers in the new datacenter, making a total of 4.
   My question is: can I concatenate the archive command like we can concatenate commands in linux.  So this would look like:    'sh /homedirectory/logshipp.to.2.old,sh %p %f  ; sh /homedirectory/logshipp.to.2.new.sh % p %f'
    or
do I need to simply add the 2 new servers to the logshipp.to.2.old.sh script?
Maybe && would make more sense, if it is mandatory that all of them succeed.

All comments welcome.  thank you

--
Mark Steben
 Database Administrator
@utoRevenue | Autobase 
  CRM division of Dominion Dealer Solutions 
95D Ashley Ave.
West Springfield, MA 01089

t: 413.327-3045
f: 413.383-9567

www.fb.com/DominionDealerSolutions
www.twitter.com/DominionDealer
 www.drivedominion.com







-- 
Achilleas Mantzios
IT DEV Lead
IT DEPT
Dynacom Tankers Mgmt
--------------DE9E9B974900D08D3DB29DA4--