On Wed, Feb 21, 2024 at 3:13 PM Bob Van <
overm...@gmail.com> wrote:
>
> After reviewing docs and other examples I see that 'backup' in the command isn't known and needs to be replaced by the barman server ip address and that I needed to test the connection first with 'dummy':
>
> postgres@dev:~$
> barman-wal-archive --test 192.168.1.250 pg DUMMY
> Ready to accept WAL files for the server pg
>
This is a DNS/lookup problem. I told you to test the exact command
PostgreSQL was executing, and which is _always_ reported in the logs
in case of failure, so you would have figured out immediately.
> After this, 'barman check' has a new 'fail':
>
> empty incoming directory: FAILED ('/var/lib/barman/pg/incoming' must be empty when archiver=off)
>
Sounds to me you played with archive on/off, but I've never
experienced this error so far.
> Also for 'WARNING: No backup strategy set for server ...', it's not clear where to add the 'backup_option' but an old post mentions 'setting' in 'global/server configuration'. I took this to mean the main 'barman.conf' conf, which doesn't have the line, so I added it which seems to fix it now.
>
This is a warning, not an error. From the docs
<
https://docs.pgbarman.org/release/3.10.0/>:
"Barman will now use concurrent backups if neither concurrent_backup
nor exclusive_backup are specified in backup_options. "
so you should not have to set up such variable at all.
>
> Now that a backup over ssh completes, and my 'verify' util is fixed, I get an error that 'backup_manifest' doesn't exist, which it doesn't. I read how 'backup_manifest' was adding in psql13, so I should have it, so would appear that pg_basebackup isn't working right, which isn't a barman issue.
>
Uhm...strange. Any chance you can nuke the backup repository and start
over on a fresh environment to see what happens?
Which barman and PostgreSQL are you using?
Luca