failing to run barman backup #1019
-
Hi, I've tried to follow the streaming replication setup in the documentation. I have a valid password for the backup server to connect to the psql server, and it seems to work,
So I tried to setup the When I run
and the logfile says:
what am i missing? i don't have an SSH connection from the backup server to the postgresql server (since it doesn't seem to me that's necessary), is that the missing bit? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 2 replies
-
@anarcat I have the same problem, have you found a solution? |
Beta Was this translation helpful? Give feedback.
-
@anarcat I have the same problem, have you found a solution?
not really, unless you count "switching to pgbackrest" to be a solution. :)
|
Beta Was this translation helpful? Give feedback.
-
Hi, Barman expects archiving to be working, and in order to verify that it checks if there are any WALs archived in the If there are no WALs there because this is a new server and has no activity yet, you can force a WAL switch on the postgres primary using One other thing, you don't need I hope this is what you were looking for. In any case, I'd like the feedback from both @anarcat and @stephane-klein on the experience with the docs. Is there some room for improvement (I surely think there is, but would like some feedback on what is missing or what should change) |
Beta Was this translation helpful? Give feedback.
Hi,
Barman expects archiving to be working, and in order to verify that it checks if there are any WALs archived in the
back_directory/wals/
, which in your case would be/var/lib/barman/weather-01/wals/
.If there are no WALs there because this is a new server and has no activity yet, you can force a WAL switch on the postgres primary using
SELECT pg_switch_wal()
as a superuser, or through the barman server usingbarman switch-wal weather-01
. Once Postgres switches to the next WAL, the previous is ready to be archived. Just wait one minute for the scheduler to runbarman cron
or execute it manually to get the WAL archived to the final destination.One other thing, you don't need
archiver =…