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 1iMZjO-0003e6-Lk for pgsql-general@arkaria.postgresql.org; Mon, 21 Oct 2019 15:36:26 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1iMZjN-0004Gk-G7 for pgsql-general@arkaria.postgresql.org; Mon, 21 Oct 2019 15:36:25 +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 1iMZio-0000Av-2r for pgsql-general@lists.postgresql.org; Mon, 21 Oct 2019 15:35:50 +0000 Received: from mail-pf1-x444.google.com ([2607:f8b0:4864:20::444]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1iMZil-00045X-AF for pgsql-general@lists.postgresql.org; Mon, 21 Oct 2019 15:35:48 +0000 Received: by mail-pf1-x444.google.com with SMTP id q21so8636459pfn.11 for ; Mon, 21 Oct 2019 08:35:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=Cseqv3mRygzoTHmW2YAHzZRG25sQMmvm6R8/BgAW/QY=; b=jW/To/AUlP9LRyHIpOvtSQ/PJF6ptAw2mh8kwlhXuN9ZQHUJRXpJTAz1aMv+xp0iUg ssVP0mLlEAvcBGjuRJa0A3A/BDI1xEDVEKstf492JJITNuEfatpP5TDFFCt1yf24OhZE hKQ9hfQXZdpTb8Aig78rBXb/Q3t/g6h7CnJIs7WYSoKE4/Gby6HYHjMxOx6LVv9Zzhal Lx9Uvv6046D8+Oi+dHRr0GDEkcwq/PdKVPN0bck1SuymGXrl4mAQqWBG7YHlGOR97mcV aS9SmyA2WwQMLLkZr1PusSIQ82i8dKU4kT/Mo+hjTYYpnLdcY/5HCEz1LN7jyY6u5oHx MlJw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=Cseqv3mRygzoTHmW2YAHzZRG25sQMmvm6R8/BgAW/QY=; b=jEvipy0XTQRMOd3NDKf1X1B06pWDz91sf6y/JiXujUY7W4r94a9n97MPGlidyRGnyG J2nPkB3H5UdeXC8YoDnv1KPeNN69kgQidwQ62QoyEvFyvdXnJNyLz13l3uvkZEXEhaVv cUAbMtr+JhKWHsE/Bud9CyijLFlQ2ylEp1SPSL+bP4WMKR7RBVLVMFDxio1POeWkOYr9 83XJ4DluGa+daX++syVkupPDXAY9rjoxVSyly81Ifp2oST2VADQruLs3TGO5gW5c1y7q L5wliSE/Vg60ckj7nqu38sxPLMCxainW7PS2wNuEqe/rDRO+DqmCeUTgOd32pu45T/sh M24w== X-Gm-Message-State: APjAAAW+OvsDQ6+k6QnxMgVqKfAGVnZIcR51Gbb6PMUHMBW0+fDaMQLD SKdCIfgPj/GRJWQJagC3/ENWEznM+Fo= X-Google-Smtp-Source: APXvYqxpin83GASWPPNnGePjmJL7E180RP2iqM2zdK4nhBHnIEoG2pJ+XdKkw1aYy5mayPmtmzF4gQ== X-Received: by 2002:a17:90a:bb0a:: with SMTP id u10mr30471709pjr.14.1571672145743; Mon, 21 Oct 2019 08:35:45 -0700 (PDT) Received: from [192.168.2.151] ([121.99.102.124]) by smtp.gmail.com with ESMTPSA id k95sm19551240pje.10.2019.10.21.08.35.43 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 21 Oct 2019 08:35:45 -0700 (PDT) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 13.0 \(3594.4.19\)) Subject: Re: Postgres Point in time Recovery (PITR), From: Horacio Miranda In-Reply-To: <2dd2f239-b2e0-5c4a-6798-d050be75aed4@aklaver.com> Date: Tue, 22 Oct 2019 04:35:40 +1300 Cc: Avinash Kumar , Alan Hodgson , "pgsql-general@lists.postgresql.org" Content-Transfer-Encoding: quoted-printable Message-Id: <537778D5-96CE-4D68-9294-21433F991BC7@gmail.com> References: <3ff2963f-daab-81d4-ab1a-569fe1c8857b@pgmasters.net> <90e84d0e772caeb8d20e34d0738bdb4b525f5a61.camel@lists.simkin.ca> <2dd2f239-b2e0-5c4a-6798-d050be75aed4@aklaver.com> To: Adrian Klaver X-Mailer: Apple Mail (2.3594.4.19) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Hi > On 22/10/2019, at 4:14 AM, Adrian Klaver = wrote: >=20 > On 10/21/19 8:10 AM, Avinash Kumar wrote: >> Hi, >> On Mon, Oct 21, 2019 at 8:16 PM Alan Hodgson = > wrote: >> On Mon, 2019-10-21 at 16:40 +0530, Avinash Kumar wrote: >>>=20 >>> We need to ensure that we have safe backup locations, for = example, >>> push them to AWS S3 and forget about redundancy. >>> Why do you think only Offline Backups are reliable today ?=20 The only way to ensure, you have a secondary protocol, is using some = type of pull approach, were the backup system pull from the online = system. >> There have been examples of hackers gaining control of an >> organization's servers or cloud accounts and not only destroying >> their online systems but also methodically deleting all their = backups. There are fewer things that can go catastrophically wrong = if one has >> actual offline backups. You have to be a lot more careful about >> protecting anything attached to the Internet. >> I do not agree with this. If a hacker is gaining control of your = organizational servers to destroy your Online backups, can't he destroy = the offline backups and your database ? They only way to be safe is having an external company or passwords = isolated from your organisation, my personal approach is having public = certs installed from the secondary backup system to pull the backups = from the online platforms. Having generated passwords with a keepass = encrypted database isolated from the Organisations. >=20 > Well to me off-line means you have introduced an air gap between your = on-line presence and your off-line backups. This would prevent an = intruder from accessing the off-line backups. The only way is not having the access or perhaps a 2FA to login into AWS = platforms to ensure you know when someone is trying to login to your AWS = accounts, Linux servers support 2FA too. >=20 >> This is not a right justification to encouraging Offline Backups over = Online Backups. >> If you are worried about storing your online backups through internet = on cloud (i do not agree as you can still secure your data on cloud), = store it in on a server in your Organizational network and do not push = them through internet. >> Taking Offline Backups is not the only right way to ensure Reliable = Backups. >> We are way ahead of the days where you need to face downtime to take = backups. >> Online Backups are reliable in PostgreSQL. I think offline backups are useful as complement to the online backups, = my current policy of backups for offline one are ( weekly, monthly, = yearly with 4 backup retention ) only one time a yearly backup was = utilised to recover a human mistake. PS: I think if you are really worried about hackers, perhaps you need to = chat with your security officer to ensure alerts, accountability and 2FA = plus other techniques are implemented in your company, nothing will stop = a good hacker and probably it is working inside of your company, 80% of = the attacks comes from people that works inside of the company ( Orion = security Chile in 2001 shared this information ), no clue what todays = stats are. Ps2: don=E2=80=99t use passwords like secret, or s3cr3t, etc. and = don=E2=80=99t forget security is just a feeling. >=20 >=20 > --=20 > Adrian Klaver > adrian.klaver@aklaver.com >=20 >=20