Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jZZzG-0005i4-9F for pgsql-general@arkaria.postgresql.org; Fri, 15 May 2020 13:02:50 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1jZZzE-0006RJ-DY for pgsql-general@arkaria.postgresql.org; Fri, 15 May 2020 13:02:48 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jZZzD-0006Qh-SP; Fri, 15 May 2020 13:02:48 +0000 Received: from campbell-lange.net ([178.79.140.51]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jZZz9-0004Es-Ko; Fri, 15 May 2020 13:02:47 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=campbell-lange.net; s=it; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=B4xWntV2DIFf3hFmf+iFSK+01D1k3T/OJhP1ywxUVKQ=; b=vpbRrhZfH9FGFx5t6MlGTzsuB RbGDR2njjKILqhR3yzCEC+MTjz533QOtSWbZSjXHhmClLm+Dhwmllt39S+YF89bcEUItun9ec3t9a R9xiufJUgxVeoASaAWcI3Gie++HnkRASR6KakTX9KVmu3F0ATi8BkriV4vF0xZf6IZGyg=; Received: from [217.138.52.158] (helo=rory-t450s) by campbell-lange.net with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jZZz7-00055t-0v; Fri, 15 May 2020 13:02:41 +0000 Received: from rory by rory-t450s with local (Exim 4.92) (envelope-from ) id 1jZZzC-0006ou-Ck; Fri, 15 May 2020 14:02:46 +0100 Date: Fri, 15 May 2020 14:02:46 +0100 From: Rory Campbell-Lange To: Suhail Bamzena Cc: pgsql-general@lists.postgresql.org, pgeu-general@lists.postgresql.org Subject: Re: Inherited an 18TB DB & need to backup Message-ID: <20200515130246.GB25570@campbell-lange.net> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 15/05/20, Suhail Bamzena (suhailsalem@gmail.com) wrote: > Hello All, > I have very recently inherited an 18 TB DB that is running version 9.2. > Apparently this database has never been backed up and I have been tasked to > set in a periodic backup routine (weekly full & daily incremental) and dump > it into a NAS. What is the best way to go about this? Did some reading and > hear that pgbackrest does a good job with such huge sizes. Your expert > advise is needed. Incremental backups suggest the need to backup WAL archives. See https://www.postgresql.org/docs/9.2/continuous-archiving.html pgbackrest looks very cool but we haven't used it. A very simple solution could be just to dump the database daily with pg_dump, if you have the space and machine capacity to do it. Depending on what you are storing, you can achieve good compression with this, and it is a great way of having a simple file from which to restore a database. Our ~200GB cluster resolves to under 10GB of pg_dump files, although 18TB is a whole different order of size. Rory