Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1efspo-00006i-0x for pgsql-general@arkaria.postgresql.org; Sun, 28 Jan 2018 19:41:48 +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 1efspl-0002L6-MR for pgsql-general@arkaria.postgresql.org; Sun, 28 Jan 2018 19:41:45 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1efspl-0002Kw-Bm for pgsql-general@lists.postgresql.org; Sun, 28 Jan 2018 19:41:45 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1efsph-0000sD-QA for pgsql-general@postgresql.org; Sun, 28 Jan 2018 19:41:43 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id w0SJfcUt029347; Sun, 28 Jan 2018 14:41:38 -0500 From: Tom Lane To: Adrian Klaver cc: "fabio.silva" , pgsql-general@postgresql.org Subject: Re: PostgreSQL Restore Database Without Backup and Log In-reply-to: <60ee530f-6529-bacd-b0e4-decf08324a40@aklaver.com> References: <1516975132796-0.post@n3.nabble.com> <60ee530f-6529-bacd-b0e4-decf08324a40@aklaver.com> Comments: In-reply-to Adrian Klaver message dated "Sun, 28 Jan 2018 11:30:48 -0800" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <29345.1517168498.1@sss.pgh.pa.us> Date: Sun, 28 Jan 2018 14:41:38 -0500 Message-ID: <29346.1517168498@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Adrian Klaver writes: > On 01/26/2018 05:58 AM, fabio.silva wrote: >> I had a Ransomware atack and I lost a lot of file from my server. >> I just have the OID folder and the files inside it. >> Is it possible restore database using only this data files? > I am going to say no, too much information is missing to reconstruct the > cluster. There are various PG support companies that specialize in data recovery after filesystem failures, and it's possible that one of them could help in getting at least some data back from this situation. It likely won't be cheap though. There's definitely no easy, certain-to-work answer. regards, tom lane