BARMAN-SWITCH-WAL(1)
π BARMAN-SWITCH-WAL β¨
okay so bestie, welcome to the barman-switch-wal page from the Barman manual (section 1, sub-commands energy) π this is the little command that makes Postgres flip to a brand new WAL file, and honestly? she's iconic for it.
πΈ NAME πΈ
barman-switch-wal β Barman Sub-Commands π
π¦ SYNOPSIS π¦
switch-wal
[ --archive ]
[ --archive-timeout ]
[ --force ]
[ { -h | --help } ]
SERVER_NAME [ SERVER_NAME ... ]
β¨ DESCRIPTION β¨
So what this does is: it runs pg_switch_wal() on the target server β that's for Postgres versions 10 and later β or pg_switch_xlog() if you're on Postgres versions 8.3 to 9.6. either way, we're switching that WAL, periodt π
π PARAMETERS π
SERVER_NAMEβ the name of the server inbarmannode π«Ά--archiveβ she waits for one WAL file to be archived. if no WAL file gets archived within the specified time (default: 30 seconds), Barman will terminate with a failure exit code π. this option is also available on standby servers β¨--archive-timeoutβ you're telling her how many seconds (default: 30 seconds) the archiver should wait for a new WAL file to be archived before it times out β³. this option is also available on standby servers too π--forceβ forces the switch by executing aCHECKPOINTbeforepg_switch_wal()π₯
Note: running a CHECKPOINT may increase I/O load on the Postgres server, so use this option cautiously β like, she's powerful but she's loud, okay? π
-h/--helpβ shows a help message and exits π. gives you all the info about command usage, no gatekeeping π
π Author π
EnterpriseDB
π Copyright π
Β© Copyright EnterpriseDB UK Limited 2011-2026
and that's the whole page, bestie π§ this was Barman 3.20, dated Sep 29, 2026 β no cap, go switch some WALs π β¨π¦
π¦ where this page comes from
- epel 10: barman 3.20.1-1.el10_3 Β· GPL-3.0-only
- fedora 43: barman 3.20.1-1.fc43 Β· GPL-3.0-only
- fedora 43: barman 3.20.1-3.fc43 Β· GPL-3.0-only
- fedora 44: barman 3.20.1-1.fc44 Β· GPL-3.0-only
- fedora 44: barman 3.20.1-3.fc44 Β· GPL-3.0-only
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms