17 July 2017: 2ndQuadrant is proud to announce the release of Barman 2.2, a Backup and Recovery Manager for PostgreSQL databases.
This major release boasts a long awaited feature: the implementation of parallel copy for backup/recovery through the
parallel_jobs option. This highly anticipated feature allows Barman to perform copies at an accelerated rate, speeding up the backup and recovery process for the rsync copy method.
Subito, long time partners of 2ndQuadrant and sponsor of the Barman project, participated in early testing of the parallel copy feature.
Barman’s parallel backup feature with 4 parallel jobs doubled transfer rate and cut the backup time by 60% and recovery time by 40%. (Subito Data Team)
This feature has been a goal of the development team for some time. “Parallel copy fills an important gap for Barman in very large database (VLDB) scenarios, by giving users flexibility and freedom in architecture design to help them reduce both backup and recovery times sensibly.” said Gabriele Bartolini, one of the lead developers behind Barman. “This feature takes advantage of the code refactoring activity that has been previously performed with 2.0 and 2.1 releases, including the thousands of automated tests that help us make Barman more robust.”
Other notable features in this major release include:
- Support custom WAL size (PostgreSQL 8.4 and up)
- Improve check command
- Add external_configuration to backup_options
--no-get-waloptions to barman recover
max_incoming_wals_queueglobal/server option for the check command
- Documentation improvements
Additionally, several minor bug fixes have also been implemented.
For a complete list of changes, see the “Release Notes” section below.
Navionics, manufacturer of electronic navigational charts and founding sponsor of the Barman project, migrated its systems to PostgreSQL in 2012. With several servers under Barman backup, the Navionics team stated that they are proud to have contributed again in the developing of a new Barman release that includes parallel jobs. “We have been a sponsor of Barman since the first release because we need a reliable system and disaster recovery [capability] for our production servers,” stated the Navionics DBA Team. “We are sure that [parallel copy within Barman] will allow us to have faster backup and restore for our huge databases.”
- Man page, section 1
- Man page, section 5
- Client utilities for Barman
- pgespresso extension
Implement parallel copy for backup/recovery through the
parallel_jobsglobal/server option to be overridden by the
-jruntime option for the
recovercommand. Parallel backup is available only for the
rsynccopy method. By default, it is set to 1 (for behaviour compatibility with previous versions).
Support custom WAL size for PostgreSQL 8.4 and newer. At backup time, Barman retrieves from PostgreSQL
wal_block_sizevalues and computes the necessary calculations.
checkcommand to ensure that
incomingdirectory is empty when
streamingdirectory is empty when
backup_optionsso that users can instruct Barman to ignore backup of configuration files when they are not inside
PGDATA(default for Debian/Ubuntu installations). In this case, Barman does not display a warning anymore.
max_incoming_wals_queueglobal/server option for the
checkcommand so that a non blocking error is returned in case incoming WAL directories for both
streaming_archivercontain more files than the specified value.
File format changes:
- The format of
backup.infofile has changed. For this reason a backup taken with Barman 2.2 cannot be read by a previous version of Barman. But, backups taken by previous versions can be read by Barman 2.2.
- The format of
Minor bug fixes:
replication-statusto work against a standby
- Close any PostgreSQL connection before starting
- Safely handle paths containing special characters
.partialfiles after promotion of streaming source
- Recursively create directories during recovery (SF#44)
- Improve xlog.db locking (#99)
- Reconnect to PostgreSQL if connection drops (SF#82)
- Release Notes
- RPMs for RHEL/CentOS 5 (dependencies)
- RPMs for RHEL/CentOS 6 (dependencies)
- RPMs for RHEL/CentOS 7 (dependencies)
- pgespresso on PostgreSQL Extension framework (PGXN)
- pgespresso RPM/Debian packages
- barman-cli RPM/Debian packages
- Online documentation
- PDF documentation
Barman is an open-source administration tool for backup and disaster recovery of PostgreSQL servers written in Python. It allows organizations to perform remote backups of multiple servers in business critical environments and help DBAs during the recovery phase.
Barman is developed and maintained by 2ndQuadrant and distributed under GPL v3.
2ndQuadrant was founded in 2001 by Simon Riggs, a major developer and committer of the PostgreSQL project. As the largest single collective organization of PostgreSQL experts of any company globally, it is 2ndQuadrant’s mission to provide the gold standard of products and services to support PostgreSQL and its continuous growth. Comprised of some of the best known developers from around the globe, all members actively contribute to the development of PostgreSQL.