Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1tMBB5-002Qt3-1P for pgsql-general@arkaria.postgresql.org; Fri, 13 Dec 2024 19:18:19 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1tMBB2-00B518-IB for pgsql-general@arkaria.postgresql.org; Fri, 13 Dec 2024 19:18:17 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1tMBB2-00B50x-6k for pgsql-general@lists.postgresql.org; Fri, 13 Dec 2024 19:18:17 +0000 Received: from mail.appl-ecosys.com ([50.126.108.78]) by makus.postgresql.org with esmtps (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1tMBB1-002fpO-4U for pgsql-general@postgresql.org; Fri, 13 Dec 2024 19:18:16 +0000 Received: from salmo.appl-ecosys.com (salmo.appl-ecosys.com [192.168.55.1]) by mail.appl-ecosys.com (Postfix) with ESMTP id C35462A43D0 for ; Fri, 13 Dec 2024 11:18:13 -0800 (PST) Date: Fri, 13 Dec 2024 11:18:13 -0800 (PST) From: Rich Shepard To: pgsql-general@postgresql.org Subject: Re: Restoring database from backup In-Reply-To: <3745bd88-413f-4fa5-90a1-d374852d10a9@aklaver.com> Message-ID: References: <3745bd88-413f-4fa5-90a1-d374852d10a9@aklaver.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Fri, 13 Dec 2024, Adrian Klaver wrote: > This needs more information: > > 1) Have you backed up your database at the current state? Adrian, No, the current state is FUBAR'd. The cron backup script runs each night at 11:15 p.m. > 2) What command did you use to create bustrac-2024-12-12.sql? !/usr/bin/bash # # This script pg_dump to save the database w/date stamp cd /data1/database-backups/ pg_dump -d bustrac -c -f bustrac-$(date +%Y-%m-%d).sql cd Thanks, Rich