Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eKvGU-0000lA-3P for pgsql-general@arkaria.postgresql.org; Sat, 02 Dec 2017 00:02:42 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eKvGT-0007LU-HN for pgsql-general@arkaria.postgresql.org; Sat, 02 Dec 2017 00:02:41 +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.84_2) (envelope-from ) id 1eKvGT-0007LL-AC for pgsql-general@lists.postgresql.org; Sat, 02 Dec 2017 00:02:41 +0000 Received: from hogranch.com ([75.101.82.47]) by magus.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1eKvGO-0002ck-VS for pgsql-general@lists.postgresql.org; Sat, 02 Dec 2017 00:02:40 +0000 Received: from [192.168.0.2] (porker [192.168.0.2]) by hogranch.com (8.11.6/8.11.6) with ESMTP id vB202Tl32128 for ; Fri, 1 Dec 2017 16:02:29 -0800 Subject: Re: pg data backup from vps To: pgsql-general@lists.postgresql.org References: <395df0f5-f135-37bd-ec87-4d7f3902548f@tigernassau.com> From: John R Pierce Message-ID: <0913501f-3db8-b175-c368-12797b2e53aa@hogranch.com> Date: Fri, 1 Dec 2017 16:02:24 -0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.5.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US X-HawgScanner-Information: Please contact the ISP for more information X-HawgScanner: Found to be clean List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 12/1/2017 12:44 PM, basti wrote: > Replication is no backup. > Its more like a RAID. > > That mean tubles that are delete on master by a mistake there are also > delete on slave. > > correct me if i'am wrong. a wal archive plus occasional basebackups lets you restore to any point in time (PITR) covered since the oldest basebackup. think of a base backup as a 'full' backup, and the wal logs in the archive as incrementals.    one such approach might be a weekly basebackup, where you keep the last 4 weeks, and keep all wal files since the start of oldest basebackup.   yes, this will take quite a bit of space -- john r pierce, recycling bits in santa cruz