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 1tMASH-002KWr-Cn for pgsql-general@arkaria.postgresql.org; Fri, 13 Dec 2024 18:32:01 +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 1tMASE-00AKTb-El for pgsql-general@arkaria.postgresql.org; Fri, 13 Dec 2024 18:31:59 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1tMASD-00AKPJ-6C for pgsql-general@lists.postgresql.org; Fri, 13 Dec 2024 18:31:59 +0000 Received: from fhigh-b4-smtp.messagingengine.com ([202.12.124.155]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1tMASA-002gZu-CU for pgsql-general@postgresql.org; Fri, 13 Dec 2024 18:31:57 +0000 Received: from phl-compute-11.internal (phl-compute-11.phl.internal [10.202.2.51]) by mailfhigh.stl.internal (Postfix) with ESMTP id 534DE254007C; Fri, 13 Dec 2024 13:31:52 -0500 (EST) Received: from phl-mailfrontend-01 ([10.202.2.162]) by phl-compute-11.internal (MEProxy); Fri, 13 Dec 2024 13:31:52 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aklaver.com; h= cc:content-transfer-encoding:content-type:content-type:date:date :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to; s=fm3; t=1734114712; x=1734201112; bh=SvdZ4zSQVuJ83/HHkIwVfNY9QaS1JpKNsbTXgmEm3mA=; b= gGKoydGeqW2B4z+Q7X+yjpWIoVZyRmnlUay+WJaLkU/vxiMUCkCABDc9Fx4aSmir CasD2DMHbjZLPcBkkTHbwvbbojw/gJURCtpWiw1pa7xFy7YOdOmVfkwAzx3IKn1+ gmfXIqqIO1uVmHirOjwINsoiR+4VJYfvfGJc7/fqfyCYIretvUDwJvWfve0GzmaQ vuFdZDMaj9UoEB1CXBegq7/pvsLSqn6+a1emjhjfGaaZq5IzR1YKQb/JypcU1ND8 olcw8s5g/7qPrJrTl+uaTuk3bXznOlyrMHQfGQGBhPsXGLBXx579tQAOlvuFeQIN 8x9dtGKgAo/RJm5LaKvo4Q== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :content-type:date:date:feedback-id:feedback-id:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:subject:subject:to:to:x-me-proxy:x-me-sender :x-me-sender:x-sasl-enc; s=fm1; t=1734114712; x=1734201112; bh=S vdZ4zSQVuJ83/HHkIwVfNY9QaS1JpKNsbTXgmEm3mA=; b=ZkuFDICHhdDTWCEbJ 5/pqJjH/vLEKJGgnYu2famykRYSmzlc/bQ9DTXo0ea8RMM59nrUYPcoZ9D3mji1o SHF5YVChMRZl3CJLY9sQ2JTyuO7gkkovkWMN89ke+Y6AYZRjjdRGUXZ+btamY8Kq B11RjqMC6nl23BP9VPe3E58hjc2G0rhPiVMJ02RqNkck2kM8rBaVL/YlKi9kFILp BE4WQr839MRq50BUbt0jDFEJJASEFBM3Ybw+9r5/AQgBrE2wdXnbFFrHyQAongvP /hWnCMqEAx89DcUHCjylx6NGAE2uEp0oC5fh+Lu4FQUBz8M5rl3VLGhHnC42Jjfs JAQTA== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefuddrkeejgdduuddvucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdggtfgfnhhsuhgsshgtrhhisggvpdfu rfetoffkrfgpnffqhgenuceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnh htshculddquddttddmnecujfgurhepkfffgggfuffvfhfhjggtgfesthejredttddvjeen ucfhrhhomheptegurhhirghnucfmlhgrvhgvrhcuoegrughrihgrnhdrkhhlrghvvghrse grkhhlrghvvghrrdgtohhmqeenucggtffrrghtthgvrhhnpeeivdfhieehheegueeileej ieettdejhedugeefleekvdelkeehtdfgiefffeekudenucevlhhushhtvghrufhiiigvpe dtnecurfgrrhgrmhepmhgrihhlfhhrohhmpegrughrihgrnhdrkhhlrghvvghrsegrkhhl rghvvghrrdgtohhmpdhnsggprhgtphhtthhopedvpdhmohguvgepshhmthhpohhuthdprh gtphhtthhopehrshhhvghprghrugesrghpphhlqdgvtghoshihshdrtghomhdprhgtphht thhopehpghhsqhhlqdhgvghnvghrrghlsehpohhsthhgrhgvshhqlhdrohhrgh X-ME-Proxy: Feedback-ID: i76984098:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Fri, 13 Dec 2024 13:31:50 -0500 (EST) Message-ID: <3745bd88-413f-4fa5-90a1-d374852d10a9@aklaver.com> Date: Fri, 13 Dec 2024 10:31:49 -0800 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: Restoring database from backup To: Rich Shepard , pgsql-general@postgresql.org References: Content-Language: en-US From: Adrian Klaver In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 12/13/24 10:21 AM, Rich Shepard wrote: > I made a careless error this morning and want to restore the database from > yesterday's backup, `bustrac-2024-12-12.sql'. If I run > > psql -d bustrac -f bustrac-2024-12-12.sql > > will this restore the database to yesterday's status without first > deleting/removing the FUBAR'd one? This needs more information: 1) Have you backed up your database at the current state? 2) What command did you use to create bustrac-2024-12-12.sql? > > TIA, > > Rich > > -- Adrian Klaver adrian.klaver@aklaver.com