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 1qRdZS-002SL1-35 for pgsql-admin@arkaria.postgresql.org; Thu, 03 Aug 2023 19:01:14 +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 1qRdZQ-00G6O8-ES for pgsql-admin@arkaria.postgresql.org; Thu, 03 Aug 2023 19:01:12 +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 1qRdZQ-00G6Nz-07 for pgsql-admin@lists.postgresql.org; Thu, 03 Aug 2023 19:01:12 +0000 Received: from mail-wr1-x430.google.com ([2a00:1450:4864:20::430]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1qRdZM-000OFI-Gh for pgsql-admin@lists.postgresql.org; Thu, 03 Aug 2023 19:01:11 +0000 Received: by mail-wr1-x430.google.com with SMTP id ffacd0b85a97d-3090d3e9c92so1168312f8f.2 for ; Thu, 03 Aug 2023 12:01:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cybertec-at.20221208.gappssmtp.com; s=20221208; t=1691089266; x=1691694066; h=mime-version:user-agent:content-transfer-encoding:references :in-reply-to:date:to:from:subject:message-id:from:to:cc:subject:date :message-id:reply-to; bh=rFLw4Cuxxd3Jj5rHcly3PEVcPTTKjO9zhryxqeD1/C4=; b=2/mLcoh8ejbJd1QIlu7jwvaBFSNzi5mHScX9ZP9q+9CYZBRBVlXoz4ZBvwafJT9rPR 7xer4JCmeHoVUa9EVCTlVmJZWAKiUH+zFoCzsrQA/A1A/Gfh5E6/lVMMunD0CfMBuTJa W96uijUwYrb1kK6HEVPH+Xa/0NQnmQ84IrK9luWxVOr77+RTXL5TMBdY3NcL9q5U1HfS +EJ2iEDRT0UFWj5/06dX2t8o1s4piSOxTqDBGamLryDbVZtWLnM/X/fg5lAcRZGRiG4I EC0mZiZjw6O+nsJvv9dSBPOGDvGXrZhiSyT5pZOEGBCADdbv1stddZ520INIeuEMf0sk ALSg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1691089266; x=1691694066; h=mime-version:user-agent:content-transfer-encoding:references :in-reply-to:date:to:from:subject:message-id:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=rFLw4Cuxxd3Jj5rHcly3PEVcPTTKjO9zhryxqeD1/C4=; b=FzZrFhhkIXn9Pkxbk/Fe7HdUV4wf/TpvuKPXlKGTWWCdp3YqbrUGMj05pP7qo93wXV Cv3+gd5RiAy4ZlKr4LmDfHNS193B7/RUj3ztlL32nckw0Ki1r0NLA2Cp7FNe3rGk7wWr kpvz5f+03rtCf+zaO2jGUvQFLqX4VPIv571y44G534huMXwLQ+w1golTa5DQgVjYTV1W sPB9CZ/oLiSLIFYc3+IQYyPTI5Mo0hBP485M22HcrthLhojHEC5zxsSBOUz7bjTMvyFT QOvKcjJ4mveKQT8rz2aKuQHB41GGrdxCnQhxoRn9M3MMsvfgpMd/fcU0JC1ZhaA0vnCA WeCQ== X-Gm-Message-State: ABy/qLYYMaU4LyQfjUBTHlTuFt95I7beLh5cgxO12E0tEbbeqUyvE1i9 jvyUDM6lnMEY0vdHYlPnw+idaw== X-Google-Smtp-Source: APBJJlE56+x/9iT36S/kffYUf0uQZGAlky/OqcFkyLsaqz84VdWkDIVQVw7mzyhg9WsZXKSdTtX8wg== X-Received: by 2002:adf:f0cf:0:b0:317:6470:3271 with SMTP id x15-20020adff0cf000000b0031764703271mr8146584wro.45.1691089266313; Thu, 03 Aug 2023 12:01:06 -0700 (PDT) Received: from localhost.localdomain (62-46-255-8.adsl.highway.telekom.at. [62.46.255.8]) by smtp.gmail.com with ESMTPSA id m5-20020a5d6a05000000b003143801f8d8sm538119wru.103.2023.08.03.12.01.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 03 Aug 2023 12:01:06 -0700 (PDT) Message-ID: Subject: Re: Re. Backup From: Laurenz Albe To: Sushil Shirodkar , "pgsql-admin@lists.postgresql.org" Date: Thu, 03 Aug 2023 21:01:05 +0200 In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.48.4 (3.48.4-1.fc38) MIME-Version: 1.0 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Thu, 2023-08-03 at 17:20 +0000, Sushil Shirodkar wrote: > We take regular backup along with WALs everyday no issues, but one day of > the week regularly backup fails with the following error. >=20 > ERROR: =C2=A0requested WAL segment 0000000C000008A10000000B has already b= een removed >=20 > We know the reason there is heavy database activity going during this per= iod. But > trying to avoid addition of more WAL files, is there any way to modify ou= r backup > command below which will take just the snapshot and not worry about the W= ALs?=C2=A0 > playing with diff. options but no luck.=C2=A0=C2=A0 >=20 > pg_basebackup -h ${MASTER_TCP_ADDRESS} -U ${REP_USER} -D ${BACKUP_DIR} -X= fetch -Ft -zPw >>$LOG You need the WAL, otherwise you cannot recover the backup. Use "-X stream" instead of "-X fetch", and the problem will go away. Yours, Laurenz Albe --=20 Cybertec | https://www.cybertec-postgresql.com