Archive
This tutorial will show you how to do an archive using pgmoneta.
Preface
This tutorial assumes that you have an installation of PostgreSQL 13+ and pgmoneta.
See Install pgmoneta for more detail.
Creating an archive
pgmoneta-cli -c pgmoneta.conf archive primary newest current /tmp/
pgmoneta-cli -c pgmoneta.conf archive primary newest current /tmp/
will take the latest backup and all Write-Ahead Log (WAL) segments and create an archive named /tmp/primary-<timestamp>.tar.zstd
. This archive will contain an up-to-date copy.
(pgmoneta
user)