Re: Verify or dump pgdata files

From: Muhammad Ikram <me(dot)mikram(at)gmail(dot)com>
To: Murthy Nunna <mnunna(at)fnal(dot)gov>
Cc: "pgsql-admin(at)postgresql(dot)org" <pgsql-admin(at)postgresql(dot)org>
Subject: Re: Verify or dump pgdata files
Date: 2024-10-21 03:33:31
Message-ID: CAJQ7xG4OLtxHZRqmnYH1pm9DYdtBXK_55DP5jarZFZSous+TNg@mail.gmail.com
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-admin

Hi,

Could you use diff ? e.g.

diff -qr /var/lib/pgsql/15/data /tmp/data

Or

pg_checksums --verify --data-dir=/pgdata (for checksum enabled databases)

or do checksum on source and target and take diff between two checksum
generated files e.g.

cd /pgdata
find . -type f -exec sha256sum {} \; > /tmp/source_checksums.txt

Regards,
Ikram

On Sun, Oct 20, 2024 at 4:45 AM Murthy Nunna <mnunna(at)fnal(dot)gov> wrote:

> Hi,
>
>
>
> We are currently using pg_waldump to verify integrity of WAL files after
> archiving them in external storage. If the WAL is incomplete pg_waldump
> returns error, which is great.
>
>
>
> Similarly, I am wondering if there is any utility that can be used against
> data files in /pgdata. Just to verify after “rsync” of /pgdata.
>
>
>
> Thanks in advance for your response.
>
>
>
>
>
>
>
>
>

In response to

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Muhammad Ikram 2024-10-21 04:02:22 Re: Backup Information
Previous Message Murthy Nunna 2024-10-19 23:45:22 Verify or dump pgdata files