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 1sk11c-006kKd-TG for pgsql-general@arkaria.postgresql.org; Fri, 30 Aug 2024 12:46:49 +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 1sk11Z-003nxJ-NJ for pgsql-general@arkaria.postgresql.org; Fri, 30 Aug 2024 12:46:46 +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 1sk11Z-003nvF-BM for pgsql-general@lists.postgresql.org; Fri, 30 Aug 2024 12:46:45 +0000 Received: from mail-lf1-x132.google.com ([2a00:1450:4864:20::132]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1sk11P-002AzU-G8 for pgsql-general@postgresql.org; Fri, 30 Aug 2024 12:46:44 +0000 Received: by mail-lf1-x132.google.com with SMTP id 2adb3069b0e04-53346132348so2258056e87.2 for ; Fri, 30 Aug 2024 05:46:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1725021994; x=1725626794; darn=postgresql.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=jfUhainjvURVB/R1CueX8BJ1XK3sIEnXvu5mfH8RmcI=; b=L2mZ3QJpAh1r2/LVOAwW/NFpj3dP4d56J3sCA82VxtBaJ9QrMrvws3EALpOF6ga6oi X+8RUfnUhSF6ew59kmvNUKJPh0BBh3JNUvBDApzj6o7fIN/qAzi0CogBJn0rp+k7kT6C D3yvUAO19tuUF095C+7L9CRGu/G8hZpC3x/6Exl2CPtKp0J0ZcTkr6sfiFkJchbeADt2 p6mtSMBpNkLmETb3QKflPoJ+CVBS6O9aduGeGpgFInRsPl8tSFMdhBhHpI/hr2fdZ+tD p0Jxmb298Q5KjavKqErbFS1SIDGs2H7Z4uBOxzvyBRUWWlXWMeiox6m8aXsXE1bXRaMM Eleg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1725021994; x=1725626794; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=jfUhainjvURVB/R1CueX8BJ1XK3sIEnXvu5mfH8RmcI=; b=WRlhvALWWA69Ebq5AGxR8JK7JyCk3Sm1npWPyIXztXFn6vTl0rGEnoZJ2Aithw4aIF mRZDyvS/BwX5PrlaiUX/q7ht1gfG1AuafU82d4MPX8aSW2dzxtZfpY/ACjYu9YDQ7Bsi 6/2GT87nwoFfr7iamcgqNdwtwiQwN9p9m66hOkXPvWy2jhLkYLlixMNDRAIEZrzrbkMJ Stx/XoiKFtga67BRX1G6ZTXaLryB3s2gu8mc09gyKn8Ne5LTN33V8Ypx8p1U54Ijk/UJ Te/bR7OnJANIYOXmeSyVQ3BBOVirZp/jZ79LasEylWlCZrTK0fxYDxga4SeWui2UM2fZ 6cWA== X-Gm-Message-State: AOJu0Ywk7PboRPLZQRlnaW0QaZlRzs3etLXEqo5UaOxPgJzj3jzW+lf7 5/bKy8Tw2ixbR20HVmqB9NZWnVs/LzRyJ8KKFhYmoIDuqwC5tbttUZTTdF2gny4cNiXZ2B4hjnm n6Bky4YR8xsZvkYxgQcAFveoEnx5m4z1/ X-Google-Smtp-Source: AGHT+IFWXUqe1t/L5Kz6nH1CRYlFg7WSJI+ffqhKu/DoP8PlVInxdmeP61c45QsqCXJd708+PaHgsX2lJoi7LwFGEJ4= X-Received: by 2002:a05:6512:1598:b0:52f:cbce:b9b7 with SMTP id 2adb3069b0e04-53546a56c49mr1437469e87.0.1725021992910; Fri, 30 Aug 2024 05:46:32 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Greg Sabino Mullane Date: Fri, 30 Aug 2024 08:45:56 -0400 Message-ID: Subject: Re: PgBackRest full backup first time : Verification To: KK CHN Cc: pgsql-general Content-Type: multipart/alternative; boundary="0000000000001e0b3b0620e5fbfd" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --0000000000001e0b3b0620e5fbfd Content-Type: text/plain; charset="UTF-8" > > database size: 146.9GB, database backup size: 146.9GB > repo1: backup size: 20.6GB It looks to me as though everything is working as expected. You took a full backup of your system, which was around 147GB - most of which is in a tablespace. It got compressed down to 20GB. You then took two incremental backups, which are by definition much smaller and take a short amount of time to run. I can't restore back to the DB server right now to test it as it is a > production server and down time granting is not immediately possible to > test it ... > You do not have to restore to the same server or the same directory. You can keep your production system running and do a test restore somewhere else. Just make sure you specify --archive-mode=off (which prevents the WAL from being shipped from the restored system to your existing production repo) [root@db1 data]# du -h > returns 537 G > This is not relevant, as pgbackrest only cares about the Postgres data directory (/data/edb/as16/data/) 149G /data/edb/as16/tablespace/ESS This is where the rest of your backup size is coming from. Postgres and pgbackrest consider this part of the data directory. You really should spin up a test Postgres cluster and get very familiar with how pgbackrest works, rather than continuing to flounder about on a production system and rely on mailing lists to answer a bunch of questions for you. While we can answer these questions, you will learn better from experimenting and trying things out yourself on a non-prod system. Cheers, Greg --0000000000001e0b3b0620e5fbfd Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
database= size: 146.9GB, database backup size: 146.9GB
repo1: backup size: 20.6GB=

It looks to me as though everything is wor= king as expected. You took a full backup of your system, which was around 1= 47GB - most of which is in a tablespace. It got compressed down to 20GB. Yo= u then took two incremental backups, which are by definition much smaller a= nd take a short amount of time to run.

=
I can't=C2=A0 restore back to the DB server rig= ht now to test it as it is a production server and down time granting is no= t immediately possible to test it ...

You do not have to restore to the same server or the same directory.= You can keep your production system running and do a test restore somewher= e else. Just make sure you specify --archive-mode=3Doff (which prevents the= WAL from being shipped from the restored system to your existing productio= n repo)

[root@db1 data]# du -h
returns=C2=A0= =C2=A0537 G

This is not releva= nt, as pgbackrest only cares about the Postgres data directory (/data/edb/a= s16/data/)

149G =C2=A0 =C2=A0/data/edb/as16/tablespace/ESS

=
This is where the rest of your backup size is coming from. Postg= res and pgbackrest consider this part of the data directory.

=
You really should spin up a test Postgres cluster and get very f= amiliar with how pgbackrest works, rather than continuing to flounder about= on a production system and rely on mailing lists to answer a bunch of ques= tions for you. While we can answer these questions, you will learn better f= rom experimenting and trying things out yourself on a non-prod system.

Cheers,
Greg

--0000000000001e0b3b0620e5fbfd--