Skip to content

failing to run barman backup #1019

Pinned Answered by martinmarques
anarcat asked this question in Q&A
Discussion options

You must be logged in to vote

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 using barman 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 run barman cron or execute it manually to get the WAL archived to the final destination.

One other thing, you don't need archiver =…

Replies: 3 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@stephane-klein
Comment options

@anarcat
Comment options

Answer selected by martinmarques
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants