Received: from malur.postgresql.org ([2a02:16a8:dc51::56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fuVIy-0003Z0-AH for pgsql-general@arkaria.postgresql.org; Tue, 28 Aug 2018 04:08:36 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1fuVIw-0007OP-4Z for pgsql-general@arkaria.postgresql.org; Tue, 28 Aug 2018 04:08:34 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fuVIv-0007OI-1W for pgsql-general@lists.postgresql.org; Tue, 28 Aug 2018 04:08:33 +0000 Received: from out1-smtp.messagingengine.com ([66.111.4.25]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fuVIj-0006yg-Av for pgsql-general@lists.postgresql.org; Tue, 28 Aug 2018 04:08:32 +0000 Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id BAEAD21B6B; Tue, 28 Aug 2018 00:08:19 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute6.internal (MEProxy); Tue, 28 Aug 2018 00:08:19 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aklaver.com; h= content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-sender :x-me-sender:x-sasl-enc; s=fm3; bh=WMI9Q1P9uj2ln/sHBdwo2/Q1k0YGw 1PZ17RQpuvW3CU=; b=1F6z+0w5TAU9bJQevxgFQXAH8jc52+iXOAPqW2XypuVyC Gu0ka8rma0yv0XqxXnhEJUGEtj9ulQG5sPLrXFO+L0DKYg0r/w0a218lg8kiz4CJ LLkJDiEQCXBABBhIk8OmaBUWq+gRqzQqzSou04Ts45fMA6QOszRoXfFDDtLniVlY OWGxg/5QJtC1kj3PWyrCrj3QZuj9DpyGp9gwxD4isQcsfd1tJ18CkDDj5+2dF2Nf I5Vqdog5hJv50isgAN+tn43LoUoCLNdFAz5Y8m8yEJ6KZ0zH0ZwZ4yCCsWWF7gEW MJLX6jB2oa+hAVFc1JQKuIMD5AJoiA/UYlUbL+SBQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-sender:x-me-sender:x-sasl-enc; s=fm3; bh=WMI9Q1 P9uj2ln/sHBdwo2/Q1k0YGw1PZ17RQpuvW3CU=; b=XFOercoHTsJU56q8JniFcY PHM90BBP48giF2zJRX/Yn1syV/PXhqLVtgiNyjOsSN/fwi5TzV0k9WflscB9IoeT r+2Lw0sbc0TUpeA1K1rNkxLU439J7HoN3kkR8f3AzzOOpBAMzL6zh6i1477a8phS PfH49ksBPggIl4vYMMYWxof15xwrVJebtza0Oz3e9Pgn1P8BvmfNkMY52rl0G5E9 nJQ8fr3GEJzU0DVeAd+juRpincZr22OxuRPScmsMRM/MJxc+ScmjwDVeAcDJchIX J0h5EaQgoZxNniqaHqzPpB6KRWmkCCb5FUuyxJPSX8RtXAwFnFyNJxnr7FCdZH1g == X-ME-Proxy: X-ME-Sender: Received: from [192.168.1.3] (unknown [71.212.134.3]) by mail.messagingengine.com (Postfix) with ESMTPA id B53CDE462B; Tue, 28 Aug 2018 00:08:18 -0400 (EDT) Subject: Re: Reeving an error while taking the backup using "pg_basebackup" utility. To: Raghavendra Rao J S V , pgsql-general@lists.postgresql.org References: From: Adrian Klaver Message-ID: <39913e64-fa15-66af-02ee-c4159e3951e3@aklaver.com> Date: Mon, 27 Aug 2018 21:08:17 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 08/27/2018 06:49 PM, Raghavendra Rao J S V wrote: > Hi All, > > We are using below command to take the backup of the database. > > *$PGHOME/bin/pg_basebackup -p 5433 -U postgres -P -v -x --format=tar > --gzip --compress=1 --pgdata=- -D /opt/rao * > > While taking the backup we have received below error. > > transaction log start point: 285/8F000080 > > ** > > pg_basebackup: could not get transaction log end position from server: > FATAL:  requested WAL segment 00000001000002850000008F has already been > removed > > Please guide me why and how to handle this error. Do you want me to > change any of the option in my pg_basebackup command let me know. -X stream See link below. > > Please clarify me what it means *--pgdata=--D* in my above > *pg_basebackup *command. https://www.postgresql.org/docs/10/static/app-pgbasebackup.html > -- > Regards, > Raghavendra Rao J S V > -- Adrian Klaver adrian.klaver@aklaver.com