On Fri, Jun 11, 2021 at 11:46 AM Luca Ferrari <
fluc...@gmail.com> wrote:
>
> Well, I was not interested in this kind of backup, and I stand correct
> on my original answer: pg_basebackup --wal_method=none is not the
> solution. In fact, that means your backup copy will be "incomplete"
> (inconsistent is the right word), but if that is what you want...
> My guess is you need to leave streaming replication activated during
> the backup, and shut it down once the backup has completed
> (inspecting the backup files via barman is a good way to see what you
> have and what you don't need).
> I don't see the point in making a backup without WALs, and if that is
> the need, pg_basebackup is the way.
>
> Maybe, barman developers could elaborate more on this.
I agree with this. A base backup without at least the WAL generated
during the backup is not complete/self-contained, and it is not
something Barman does or will support.
I do not recommend doing this at all, but if you insist on doing it,
you'll have to use `pg_basebackup --wal-method=none`. Please note that
without access to this WAL, postgres will refuse to start against the
backed-up directory. You'll get a FATAL error like "could not locate
required checkpoint record". Even the pg_basebackup manual page says
"Unless the method none is specified, it is possible to start a
postmaster in the target directory without the need to consult the log
archive, thus making the output a completely standalone backup."
-- Abhijit