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 1ibnbZ-0003Xd-G5 for pgsql-general@arkaria.postgresql.org; Mon, 02 Dec 2019 15:27:17 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1ibnbX-0006oK-PS for pgsql-general@arkaria.postgresql.org; Mon, 02 Dec 2019 15:27:15 +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_SHA1:256) (Exim 4.89) (envelope-from ) id 1ibnbX-0006oC-FW for pgsql-general@lists.postgresql.org; Mon, 02 Dec 2019 15:27:15 +0000 Received: from mail.thelabyrinth.net ([45.56.70.56]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1ibnbU-0001dP-CF for pgsql-general@postgresql.org; Mon, 02 Dec 2019 15:27:15 +0000 Received: from crunchy.local (67-132-193-50.dia.static.qwest.net [67.132.193.50]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: dsteele) by mail.thelabyrinth.net (Postfix) with ESMTPSA id 748A654691; Mon, 2 Dec 2019 15:27:09 +0000 (UTC) Subject: Re: pgbackrest concerns and doubts. To: Ajay Pratap , Postgres General References: From: David Steele Message-ID: Date: Mon, 2 Dec 2019 10:27:05 -0500 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:60.0) Gecko/20100101 Thunderbird/60.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 Hi Ajay, On 12/2/19 1:52 AM, Ajay Pratap wrote: > I am using Postgresql 10 and pgbackrest 2.18 version on centos 7.6 > I have few doubts regard pgbackrest. > a) what is the log rotation policy for pgbackrest logs. I see it logs on > default path /var/log/pgbackrest/-.log  what is > the log rotation policy of each logs. > use case: if i am writing a script to parse the logs and gatter some > info, i should be aware of log rotation or if logs doesn't rotate a > single file could be huge to parse. > Or should I simply use /logrotate/ pgBackRest does not have any built-in log rotation policies since this is best implemented per OS. Some packages have logrotate scripts and others don't. RHEL doesn't, but you can see a logrotate example in the Debian/Ubuntu package at: https://salsa.debian.org/postgresql/pgbackrest/blob/master/debian/pgbackrest.logrotate > b) since pgbackrest takes physical backup, >  what are the impact if I upgrades minor postgres version(10.5 to 10.10) > and impact on postgres major version(10.10 to 12.X) Minor PostgreSQL upgrades require no special action in pgBackRest. We test with each minor upgrade to ensure there are no regressions. Unless you have a specific reason not to, it is always best to be running the most recent PostgreSQL minor version. Major version upgrades will require a pgBackRest stanza-upgrade to be run after the PostgreSQL upgrade is complete. For more information see: https://pgbackrest.org/user-guide-centos7.html#upgrade-stanza. Regards, -- -David david@pgmasters.net