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 1iNiUM-00015b-9q for pgsql-general@arkaria.postgresql.org; Thu, 24 Oct 2019 19:09:38 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1iNiUK-0000GW-I5 for pgsql-general@arkaria.postgresql.org; Thu, 24 Oct 2019 19:09:36 +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 1iNiUK-0000GP-4T for pgsql-general@lists.postgresql.org; Thu, 24 Oct 2019 19:09:36 +0000 Received: from mail-wm1-x341.google.com ([2a00:1450:4864:20::341]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1iNiUG-0004Fz-V8 for pgsql-general@lists.postgresql.org; Thu, 24 Oct 2019 19:09:35 +0000 Received: by mail-wm1-x341.google.com with SMTP id r141so3654485wme.4 for ; Thu, 24 Oct 2019 12:09:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cybertec-at.20150623.gappssmtp.com; s=20150623; h=message-id:subject:from:to:date:in-reply-to:references:user-agent :mime-version:content-transfer-encoding; bh=NoxfFj5CyRP5eJ0Vf0+y57CXplakwznK+ttYHl4LM3I=; b=Mfw0ekxog1qB/qSx9K51aAi7c50LYKpVRmg5m0tySo10sCFV9eAUUbvsvt9dn9X2o7 xgG1g3781fC1eByFJGVV2tUFfXLruxvIbtiKOmGwXMrEIZVG4iV+6ZAEPxqrvvpYioBV 2T2pxWdaBy2nk/9rjgYLh2BovByol1iAkAvo8WQO+YYMhG0DXwdpprV8D8k1CjLP3UdL Pr2Kw4VWdsPA0HLU2SXZqbnRGkUWXMtrj6bQo+zQas5AvZ2jgADBo3JzP2mWAWCYMzct PzFkmu5vHueHKtV1jBEbPCUSXm41vxweYTLtRNmajBKPXmY5aQnCx9VbYdvZLt2cUavS qNEA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:message-id:subject:from:to:date:in-reply-to :references:user-agent:mime-version:content-transfer-encoding; bh=NoxfFj5CyRP5eJ0Vf0+y57CXplakwznK+ttYHl4LM3I=; b=BDouMTUft7onhhhK7kD5z7YWlIolmsLaccPtvYUzn36W+6/Wp3MFXLUZKvx4oBBdkA lUtTMEKuF3y2HBBq9dqjAtxMizBHy013EdfjdTnS/nX8vAxgifIXGfrfLXsEVQd6jmTO xjSNi5Hnzc4MJ/v4fUhUlEFS6iigumrGSAtHYtGk85DX/4K5tYb1c2MvSNWKksffOS4+ 9S3HQWO4liZ5nNtUKognbZP+EBBD79JcDSJPGaxyfdEH5yB6V9N8nw3hCPBGRg36Nq5J SAX7omxrkDPQSNBFNhQlzjRXqR7aXGLWEaBmZfwW9uHStHlqD1x0YKmjHkOreLupO9KG WAmQ== X-Gm-Message-State: APjAAAVn6mwrdqwy+3aumMn9xObzXOxSwGsRaL9hwvdYzYOzQgcR7XFN f+qeJ7dDPfGdAqGdv5rq8vOvmA== X-Google-Smtp-Source: APXvYqxeHpsDttps6U8dO++2iCAE0pH1Jm7zzi32Gw/cRaaC+abfkCTlMbrnLgiAQUDv9l1DsaSqYw== X-Received: by 2002:a05:600c:23cc:: with SMTP id p12mr6220716wmb.163.1571944171814; Thu, 24 Oct 2019 12:09:31 -0700 (PDT) Received: from localhost.localdomain (217-149-173-174.nat.highway.telekom.at. [217.149.173.174]) by smtp.gmail.com with ESMTPSA id r81sm3368768wme.16.2019.10.24.12.09.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 24 Oct 2019 12:09:31 -0700 (PDT) Message-ID: <14cc3f597bb2b4fc8067fda28db352a08e8cc54f.camel@cybertec.at> Subject: Re: Recover databases from raw files (only exists the base directory) From: Laurenz Albe To: Carlos Martinez , pgsql-general@lists.postgresql.org Date: Thu, 24 Oct 2019 21:09:30 +0200 In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.32.4 (3.32.4-1.fc30) MIME-Version: 1.0 Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Carlos Martinez wrote: > I have been contacted for this interesting issue: on a standalone postgresql 9.4 > server someone deleted all PostgreSQL files and directories except the base directory > and its content (/var/lib/pgsql/9.4-base/data/base). > > So, the question is: there is any chance/procedure to recover the databases? > > As usual, the last backup has "a few" weeks. So, this dump can be used to recover the recent data? I'd cut the losses and take the backup. You'd need a specialist to recover anything there. Yours, Laurenz Albe -- Cybertec | https://www.cybertec-postgresql.com