May 2017
Beginner
416 pages
10h 37m
English
After teaching PostgreSQL to archive those WAL files, it is time to create a first backup. The idea is to have a backup and to replay WAL files based on that backup to reach any point in time.
To create an initial backup, you can turn to pg_basebackup, which is a command-line tool used to perform backups. Let us call pg_basebackup and see how it works:
pg_basebackup -D /some_target_dir -h localhost --checkpoint=fast --xlog-method=stream
As you can see, I am using four parameters here:
Read now
Unlock full access