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 1rS7D1-00BVsB-L6 for pgsql-general@arkaria.postgresql.org; Tue, 23 Jan 2024 03:12:20 +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 1rS7Cy-008j9m-Jy for pgsql-general@arkaria.postgresql.org; Tue, 23 Jan 2024 03:12:16 +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 1rS7Cy-008j9e-9A for pgsql-general@lists.postgresql.org; Tue, 23 Jan 2024 03:12:16 +0000 Received: from mail-ed1-x535.google.com ([2a00:1450:4864:20::535]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1rS7Cv-002tSs-5l for pgsql-general@lists.postgresql.org; Tue, 23 Jan 2024 03:12:15 +0000 Received: by mail-ed1-x535.google.com with SMTP id 4fb4d7f45d1cf-55a5e7fa471so3332610a12.1 for ; Mon, 22 Jan 2024 19:12:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1705979530; x=1706584330; darn=lists.postgresql.org; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=bJCyLUIm4PEMDXbe2aYXsNk4KhhawVjWAFjKkgkezPY=; b=bruuvd3DFGsjSNtsLQU2wmEbNnFAjy4cU4iaSji/EymFZQiYu8uzKCF1Ro+NX0qK59 qQsoJD0zyWw05qsj+KI3THh+CXMRvNPf5Q/jelxcwTxCCygqCUp0551zJetpKb9M5dl7 Y7FNZrSeNmbsm1zJBdUoPXMDoqPV6rNlJWeFkargavoQVtLanew5563FmQRExjhxqbTq J6cRgUDCqRAR7iNsm2MR/niKCIteY4s1dXE11qLYIZs75t69pynMtl3iTrXiuS7hocJZ rofiIbmtsTkP2FnpNjStY8c/W/ySLet533it0BnYzd4cUzmX5vRfSNfdAaPvmJzALU/M 3+RA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1705979530; x=1706584330; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=bJCyLUIm4PEMDXbe2aYXsNk4KhhawVjWAFjKkgkezPY=; b=pLiw7awGr20vp3POuQVefmAyjKx4s8R1gCPZICLsMnsN0wrCGxBns+zL0n4BvtQTSa Z71tYmwis9tnmSD2xtcp8pF+LEPa/u9HWZKesCgdO+FckE8n2tDjaa1ofTjPqBIoho+w Huh5JtSFm+2OOukyoge2qCYhUNBfK8xItHi0YXRQjVmznyEs781peeWy0HSBxtYN1tJB h+szFMHNOOPfaADqtXJebepOlHmyIkyQOc7/PjewGxrTrNXuA7/duiMXOF+pHVlAo8xO 8E3F8Kfd4G+Y93yCAzQbIRLLnH6Iuzo2TvLnmayHeagoNZuhi8QPqgNvk9qaqhM2E553 Ix6Q== X-Gm-Message-State: AOJu0YxMkHKP/jzoq+UY0C11GBvXNC3pZ3/rBiquaRVPNyNRPRyeezxu Cz1dMXGzvlQx4FikqQrstzd27TeNPWnD+ioOoAp6uKB26yaUDJa+T9IdKH89Eq4XfOKw2jtdTq1 rTYNZMVlpKz+AdjOlEpxd9aeuk9kXtfDeuVU= X-Google-Smtp-Source: AGHT+IGbaX8iiXqz1RG3RJHQsfmS1ezCXBRkLyPf83ubjCxE6XvKwZctSVPKZOeSxceIZ5I3/euXAJDe44do5c3rK8g= X-Received: by 2002:a05:6402:1816:b0:55a:640b:b5db with SMTP id g22-20020a056402181600b0055a640bb5dbmr485525edy.66.1705979530372; Mon, 22 Jan 2024 19:12:10 -0800 (PST) MIME-Version: 1.0 From: Siraj G Date: Mon, 22 Jan 2024 22:11:58 -0500 Message-ID: Subject: Backup certain months old data To: pgsql-general@lists.postgresql.org Content-Type: multipart/alternative; boundary="000000000000e6eba7060f944fce" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --000000000000e6eba7060f944fce Content-Type: text/plain; charset="UTF-8" Hello! I would like to know how we can backup certain months old data from PgSQL and then delete it. The intent is to backup everything that is older than 2 quarters to a blob storage and delete it, to improve performance and reduce billing. Regards Siraj --000000000000e6eba7060f944fce Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hello!

I would like to know how we can = backup certain months old data from PgSQL and then delete it. The intent is= to backup everything that is older than 2 quarters to a blob storage and d= elete it, to improve performance and reduce billing.

Regards
Siraj
--000000000000e6eba7060f944fce--