Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jbk07-0004Mm-IH for pgsql-general@arkaria.postgresql.org; Thu, 21 May 2020 12:08:40 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1jbk06-0006vW-BO for pgsql-general@arkaria.postgresql.org; Thu, 21 May 2020 12:08:38 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jbdA6-0004M1-3l for pgsql-general@lists.postgresql.org; Thu, 21 May 2020 04:50:30 +0000 Received: from ip27.imatronix.com ([200.63.97.108]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jbdA1-0003CL-Qw for pgsql-general@postgresql.org; Thu, 21 May 2020 04:50:28 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=imatronix.cl; s=default; h=Content-Transfer-Encoding:Content-Type: In-Reply-To:MIME-Version:Date:Message-ID:From:References:Cc:To:Subject:Sender :Reply-To: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=UheI+XS/4Muf6nlFAK4pEQXsTbzBDXx0Zitwz5F6rGE=; b=hy2hu9QQ81f8j/7mpMKv0245TV JrCknGhVcJCMoEzVnR7QkAEniqnXzKYv8ZqYVihsmqa4QDol1lqBl1QMr3FzGC3SgJTO5Z6JMcAdh 2wW0+vyqc5Quou6JN7sGbTKxZ2HtUX8zQEkrVYde8KeUPQhubFk7GYmQhngJUJ76KDYiRoEPhw7Im tPz2U5sQvxaumAjk6j8iusrRIjF5CTt6zn2KVK+oBnPCiObo0zIinFVIwcHiln1DwUQGWeUE4vYSo 0TNdoXGwoYxI22UE66ugIX8rX6dyTQmyGPrEs6sYlmVsSKS0wNiwtMHSkPebpUqaIMKth79EWmfXf o+CHh+gA==; Received: from [200.73.112.45] by cpanel.imatronix.com with esmtpsa (TLS1.2:ECDHE-RSA-AES128-GCM-SHA256:128) (Exim 4.93) (envelope-from ) id 1jbd9v-0005WY-HF ; Thu, 21 May 2020 00:50:19 -0400 Subject: Re: pg_basebackup + incremental base backups To: Stephen Frost Cc: pgsql-general@postgresql.org References: <514b14cb-f0b8-157b-2755-d5170ed4d24b@imatronix.cl> <20191204030907.GB6962@tamriel.snowman.net> From: Christopher Pereira Organization: IMATRONIX S.A. Message-ID: <367ee69d-9dc7-4de6-f8a1-b460567bcc07@imatronix.cl> Date: Thu, 21 May 2020 00:50:15 -0400 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.8.0 MIME-Version: 1.0 In-Reply-To: <20191204030907.GB6962@tamriel.snowman.net> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Content-Language: de-DE X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - cpanel.imatronix.com X-AntiAbuse: Original Domain - postgresql.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - imatronix.cl X-Get-Message-Sender-Via: cpanel.imatronix.com: authenticated_id: kripper@imatronix.cl X-Authenticated-Sender: cpanel.imatronix.com: kripper@imatronix.cl X-Source: X-Source-Args: X-Source-Dir: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk >> In case of big databases, can we do incremental backups with pg_basebackup? > pg_basebackup doesn't support incremental backups, though there's been > discussion of adding some kind of support for it, check -hackers if > you're curious. > >> Is there any alternative? > There's a few different alternatives for PG backup software, some of > which support incremental backups and restores. I'm personally involved > with pgbackrest- https://pgbackrest.org though there's other options out > there also (wal-g, barman, and more). > > Thanks, > > Stephen Hi Stephen, We tried pgbackrest as a solution to rebuild the standby cluster, by making a differential backup of the primary cluster. But it seems that pgbackrest is only able to rebuild the standby cluster by restoring an existing backup from a repository cluster, and not directly from the primary cluster. We are afraid that creating a backup on the repository cluster is an additional step that could be avoided. Is there some way to rebuild the standby cluster by doing a differential backup of the primary cluster directly?