-
Notifications
You must be signed in to change notification settings - Fork 193
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Sync/release 3.12.0 #1034
Sync/release 3.12.0 #1034
Commits on Nov 4, 2024
-
This workflow is only a template for creating new workflows. We don't need to store that in this repository, it is fairly simple to spin up a new workflow when needed. References: BAR-296. Signed-off-by: Israel Barth <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 9990f5f - Browse repository at this point
Copy the full SHA 9990f5fView commit details -
Fix issues reported by
super-linter
`main.yml` workflow has been touched by the PR for BAR-301, and it had issues about outdated actions. This commit fixes the following issues reported by `actionlint`: ```text .github/workflows/main.yml:19:15: the runner of "actions/checkout@v2" action is too old to run on GitHub Actions. update the action's version to fix this issue [action] | 19 | uses: actions/checkout@v2 | ^~~~~~~~~~~~~~~~~~~ .github/workflows/main.yml:21:15: the runner of "actions/setup-python@v2" action is too old to run on GitHub Actions. update the action's version to fix this issue [action] | 21 | uses: actions/setup-python@v2 | ^~~~~~~~~~~~~~~~~~~~~~~ .github/workflows/main.yml:41:15: the runner of "actions/checkout@v2" action is too old to run on GitHub Actions. update the action's version to fix this issue [action] | 41 | uses: actions/checkout@v2 | ^~~~~~~~~~~~~~~~~~~ .github/workflows/main.yml:43:15: the runner of "actions/setup-python@v2" action is too old to run on GitHub Actions. update the action's version to fix this issue [action] | 43 | uses: actions/setup-python@v2 | ^~~~~~~~~~~~~~~~~~~~~~~ .github/workflows/main.yml:47:15: the runner of "actions/cache@v2" action is too old to run on GitHub Actions. update the action's version to fix this issue [action] | 47 | uses: actions/cache@v2 | ^~~~~~~~~~~~~~~~ ``` References: BAR-301. Signed-off-by: Israel Barth <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 39dfc10 - Browse repository at this point
Copy the full SHA 39dfc10View commit details -
POC for single source of truth for documentation
With the current docs for Barman 3.11 we are facing an issue: we use different files to build the HTML manual and the Linux man pages. As a consequence, we need to keep updating the same information across diffrent sources for different docs. This commit performs a POC for having a single source of truth when building the Barman documentation. We use reStructuredText markup language along with Sphinx to build any kind of documentation, i.e.: * HTML docs (complete) * PDF docs (do not include code API docs) * Linux man pages (include only command and configuration reference) The `index.rst` file defines the complete structure of the docs. Then, through the variable `exclude_from_builder` in `conf.py` we are able to define a blacklist of files for each different builder. To build the documentation, we only need to run either of the following commands, depending on the desired target: * `tox -e docs -- html`: for HTML * `tox -e docs -- latexpdf`: for PDF * `tox -e docs -- man`: for Linux man pages References: BAR-299. Signed-off-by: Israel Barth <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 96d707e - Browse repository at this point
Copy the full SHA 96d707eView commit details -
This commit fixes the following issues reported by `shellcheck`: ```text In .github/foundation/security/scan-hooks.sh line 10: source .venv/bin/activate ^----------------^ SC1091 (info): Not following: .venv/bin/activate: openBinaryFile: does not exist (No such file or directory) In doc/build/build line 44: cp -va *.html *.pdf "${DISTDIR}" ^-- SC2035 (info): Use ./*glob* or -- *glob* so names with dashes won't become options. ^-- SC2035 (info): Use ./*glob* or -- *glob* so names with dashes won't become options. In scripts/release.sh line 22: BASE="$(dirname $(cd $(dirname "$0"); pwd))" ^------------------------^ SC2046 (warning): Quote this to prevent word splitting. ^-------------^ SC2046 (warning): Quote this to prevent word splitting. In scripts/release.sh line 27: if ! git tag -s -m "Release ${VERSION}" release/${VERSION} ^--------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: if ! git tag -s -m "Release ${VERSION}" release/"${VERSION}" In scripts/set-version.sh line 24: BASE="$(dirname $(cd $(dirname "$0"); pwd))" ^------------------------^ SC2046 (warning): Quote this to prevent word splitting. ^-------------^ SC2046 (warning): Quote this to prevent word splitting. In scripts/set-version.sh line 63: if [ "$1" == false ] ^-- SC3014 (warning): In POSIX sh, == in place of = is undefined. In scripts/set-version.sh line 70: echo $release_date ^-----------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: echo "$release_date" In scripts/set-version.sh line 76: release_date=$(get_date $DATE) ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: release_date=$(get_date "$DATE") In scripts/set-version.sh line 111: if branch=$(git symbolic-ref --short -q HEAD) && [ $branch = 'master' ] ^-----^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: if branch=$(git symbolic-ref --short -q HEAD) && [ "$branch" = 'master' ] In scripts/set-version.sh line 138: if [ "$DOCKER" == true ] ^-- SC3014 (warning): In POSIX sh, == in place of = is undefined. In sphinx/generate_docs.sh line 20: BASEDIR=$(cd ${0%/*}; pwd ) ^--------^ SC2164 (warning): Use 'cd ... || exit' or 'cd ... || return' in case cd fails. ^-----^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: BASEDIR=$(cd "${0%/*}" || exit; pwd ) In sphinx/generate_docs.sh line 78: printf "${RED}${1}${RSET} " ^-------------------^ SC2059 (info): Don't use variables in the printf format string. Use printf '..%s..' "$foo". In sphinx/generate_docs.sh line 89: --) ^-- SC2214 (warning): This case is not specified by getopts. In sphinx/generate_docs.sh line 104: BARMAN_DIR=$(cd "$BASEDIR/.."; pwd) ^--------------^ SC2164 (warning): Use 'cd ... || exit' or 'cd ... || return' in case cd fails. Did you mean: BARMAN_DIR=$(cd "$BASEDIR/.." || exit; pwd) In sphinx/generate_docs.sh line 106: BARMAN_DIR=$(cd "$1"; pwd) ^-----^ SC2164 (warning): Use 'cd ... || exit' or 'cd ... || return' in case cd fails. Did you mean: BARMAN_DIR=$(cd "$1" || exit; pwd) In sphinx/generate_docs.sh line 113: cd "${BASEDIR}" ^-------------^ SC2164 (warning): Use 'cd ... || exit' or 'cd ... || return' in case cd fails. Did you mean: cd "${BASEDIR}" || exit In sphinx/generate_docs.sh line 120: ls "${BASEDIR}"/docs/*.rst | grep -v 'index.rst$' | xargs -trI X rm -f X ^-- SC2010 (warning): Don't use ls | grep. Use a glob or a for loop with a condition to allow non-alphanumeric filenames. In sphinx/generate_docs.sh line 127: make ${GEN_MODE} ^---------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: make "${GEN_MODE}" ``` References: BAR-315. Signed-off-by: Israel Barth <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 744ce02 - Browse repository at this point
Copy the full SHA 744ce02View commit details -
This commit fixes the following issue reported by `markdownlint`: ```text INSTALL.md:1 MD041/first-line-heading/first-line-h1 First line in a file should be a top-level heading [Context: "## Barman INSTALL instructions"] ``` Besides that, it configures `super-linter` to skip Markdown files under `doc/` and `sphinx/` directories. Those directories contain the source code for the current Barman documentation, which is going to be replaced soon. References: BAR-315. Signed-off-by: Israel Barth <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for a5af7f2 - Browse repository at this point
Copy the full SHA a5af7f2View commit details -
This commit introduces the changes proposed by `isort`, so we please the issues reported by `super-linter`. References: BAR-315. Signed-off-by: Israel Barth <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 56b33af - Browse repository at this point
Copy the full SHA 56b33afView commit details -
This commit fixes the following issues reported by `flake8`: ```text barman/compression.py:66:18: E721 do not compare types, for exact checks use `is` / `is not`, for instance checks use `isinstance()` barman/compression.py:424:16: E721 do not compare types, for exact checks use `is` / `is not`, for instance checks use `isinstance()` barman/compression.py:429:16: E721 do not compare types, for exact checks use `is` / `is not`, for instance checks use `isinstance()` tests/test_compressor.py:457:16: E721 do not compare types, for exact checks use `is` / `is not`, for instance checks use `isinstance()` tests/test_compressor.py:459:20: E721 do not compare types, for exact checks use `is` / `is not`, for instance checks use `isinstance()` tests/test_compressor.py:460:21: E721 do not compare types, for exact checks use `is` / `is not`, for instance checks use `isinstance()` ``` References: BAR-315. Signed-off-by: Israel Barth <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for e53e6e6 - Browse repository at this point
Copy the full SHA e53e6e6View commit details -
This commit runs `black` so we stop getting failures reported by `super-linter`. References: BAR-315. Signed-off-by: Israel Barth <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 6afe7dc - Browse repository at this point
Copy the full SHA 6afe7dcView commit details -
Create a stub for the "Contributing to Barman" section
We used to have a link in the main toctree called "Barman API docs", which pointed to the content generated by `autodoc` extension based on the barman docstrings. Through this commit we replace that toctree entry with an entry for a new section called "Contributing to Barman". This sections intends to provide complete information about how a developer can contribute to the Barman project. The old "Barman API docs" was moved under this new section. References: BAR-320. Signed-off-by: Israel Barth <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 72e936d - Browse repository at this point
Copy the full SHA 72e936dView commit details -
Add information about "Writing and building documentation"
This commit adds a subsection named "Writing and building documentation" under the section "Contributing to Barman". Here we explain the style guidelines to be followed when writing patches that include documentation. Also, it explains how to build the documentation locally through `tox`. References: BAR-324. Signed-off-by: Israel Barth <[email protected]> Co-authored-by: Martín Marqués <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 6334b01 - Browse repository at this point
Copy the full SHA 6334b01View commit details -
Add a glossary to the documentation
This commit leverages from the Sphinx capability of maintaining a glossary. We add a new `glossary.rst` file where the glossary terms are maintained. For sake of example, we add a couple of terms in the glossary (Barman and PGDG). This is the basic workflow for using the glossary: * To add a new term to the glossary, add a new entry to the `glossary.rst` file. * To reference a term from the glossary, just use the syntax :term:`NAME_OF_TERM`, and Sphinx creates a link to the Glossary for you. References: BAR-326. Signed-off-by: Israel Barth <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 234daec - Browse repository at this point
Copy the full SHA 234daecView commit details -
Add installation instruction and RHEL-based instructions
This commit is: 1. Adding barman installation instructions and the specifics for RHEL-based distros installation. 2. Adding RHEL and RPM terms to glossary References: BAR-302 Signed-off-by: Andre <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 1bafa50 - Browse repository at this point
Copy the full SHA 1bafa50View commit details -
Add installation instructions for debian distros
This commit is: 1. Adding installation instructions for debian-based distributions. 2. Adding DEB term to glossary References: BAR-303 Signed-off-by: Andre <[email protected]> add to DEB to glossary Signed-off-by: Andre <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for bc86da7 - Browse repository at this point
Copy the full SHA bc86da7View commit details -
This commit applies a few small fixes to the glossary page: * Fixes the section link name, which was broken; * Adds punctuation to each item defined in the glossary. Signed-off-by: Israel Barth <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for bd40f83 - Browse repository at this point
Copy the full SHA bd40f83View commit details -
Add documention on retention policies
This commit is adding documention on retention policies, The docs were dividied in: 1. Overview - The content will be created in BAR-327 2. Minimum redundancy safety 3. Scope of retention policies 3.1 Backup Redundancy 3.2 Recovery Window 4. Use cases 4.1 Point-In-Time Recovery 4.2 Operational Efficiency and Space Management 4.3 Long-Term Archival 5. How retention policies are enforced 6. Configurations and Syntax 7. Retention policy for block-level incremental backups References: BAR-309 Signed-off-by: Andre <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 1e27b69 - Browse repository at this point
Copy the full SHA 1e27b69View commit details -
Add expanded introduction on retention policies
This commit is adding a more robust introduction on retention policies. References: BAR-327 Signed-off-by: Andre <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for c9e1a59 - Browse repository at this point
Copy the full SHA c9e1a59View commit details -
Add catalog information to the documentation
This commit is: 1. Adding an introduction to the barman catalog section. 2. Adding "Purpose" section to catalog docs 3. Adding "Usage" section to catalog docs 4. Adding `list-backups` section documenting the CLI command with example 5. Adding `show-backup` section documenting the CLI command with example References: BAR-307 Signed-off-by: Andre <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 3b6a886 - Browse repository at this point
Copy the full SHA 3b6a886View commit details -
Add quickstart section to the new docs
Adds a quickstart section to the new documentation, providing simple setups for two common backup scenarios: backups with streaming replication and backups with rsync and WAL archiving. References: BAR-304 Signed-off-by: Gustavo William <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for d37899c - Browse repository at this point
Copy the full SHA d37899cView commit details -
Explain the
barman check
command in detailAdd information about the `check` command to the new documentation. References: BAR-305 Signed-off-by: Barbara Leidens <[email protected]> Co-authored-by: Martín Marqués <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 4f88c30 - Browse repository at this point
Copy the full SHA 4f88c30View commit details -
Add documentation on recovery section of the new_docs
This commit is: 1. Adding an introduction about recovery 2. Adding Usage section and the following subsection 2.1 Remote Recovery 2.2 Tablespace remapping 2.3 PITR 2.4 Fetching WALs from Barman 2.5 Recovering Compressed backups 2.6 Recovering block-lvl increm backups 3. Adding Limitations of .partion WAL files section This commit is also adding the limitations on `--no-get-wal` usage and staging directory to combine backup in the beginning of the recovery process of block-level incremental backups. References: BAR-308 & BAR-206 & BAR-191 Signed-off-by: Andre <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 19b680e - Browse repository at this point
Copy the full SHA 19b680eView commit details -
Add configuration options to configuration section
This commit is ... * Adding an introduction on the configuration reference * Adding section `Usage` about the scope of the configuration files and a simple example of these files. In the same section, we have documented the Reserverd Words and Parameter Types. * Adding a section `Options` with all options that can be set in the configuration files. This section have the following subsections: * General * Backups * Cloud Backups * Hook Scripts * Write-Ahead Logs (WAL) * Recovery * Retention Policies. * Adding a section `Examples` with an example and the proper explanation of that. References: BAR-310 Signed-off-by: Andre <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for ab448e4 - Browse repository at this point
Copy the full SHA ab448e4View commit details -
Add shortcuts to
barman keep
to align with cloud scriptsThe `barman-cloud-backup-keep` script has shortcuts for options `--status` and `--release`. These were missing in the `barman` CLI implementation, even though the error message suggested they existed. This aligns the shortcuts throughout the code so both implementations have the same arguments. References: BAR-356 Signed-off-by: Martín Marqués <[email protected]> Signed-off-by: Giulio Calacoci <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 0467206 - Browse repository at this point
Copy the full SHA 0467206View commit details -
Add barman-cloud documentation
This commit adds documentation about the barman-cloud. It was divided as follows: * The main section is called `Barman for the cloud`. There is an introduction on how Barman can work with cloud backups. * Next section is called `barman-cli-cloud` that explains about the package, followed by an `Installation` section. * Lastly, the `Commands Reference` details each command available from the package. Each command was created in its own `.rst` file and they are referenced in the `conf.py` file. This is meant to be used to create MAN pages for each command. This commit also adds the `--no-partial` to documentation with the parameters description and alsoa brief explanation in about its use. References: BAR-312 & BAR-180 Signed-off-by: Andre <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for fcd5855 - Browse repository at this point
Copy the full SHA fcd5855View commit details -
Add license section to the documentation
This commit adds the license section of the documentation. References: BAR-314 Signed-off-by: Andre <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 4a1a910 - Browse repository at this point
Copy the full SHA 4a1a910View commit details -
Add "Introduction" subsection to the "Concepts" section of the new docs.
Adds an "Introduction" subsection to the "Concepts" section of the new documentation. It talks about general backup scenarios and advises on disaster recovery planning. References: BAR-338 Signed-off-by: Gustavo William <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for a7358cd - Browse repository at this point
Copy the full SHA a7358cdView commit details -
Adds "General backup concepts" subsection on "Concepts" section
Adds the "General backup concepts" subsection on the "Concepts" section. This section primarily focuses on explaining the fundamental backup concepts common across most relational databases and critical for understanding backups and backup management tools. References: BAR-339 Signed-off-by: Gustavo William <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 501e158 - Browse repository at this point
Copy the full SHA 501e158View commit details -
Explain the reasoning behind Check failure for WAL archives
This commit is adding the a reasoning note about why we get `Check 'empty incoming directory' failed for server '<SERVER>'` when WALs are present in the barman archive directory. It also is formatting the documentation because of max sentence length, some issues with the line breaks between bullet points and other house keeping task so the actualy rendered doc looks nice and clean. Closes GH-622 which exists in the barman repository (not this internal one). References: BAR-238 Signed-off-by: Andre <[email protected]> Co-authored-by: Martín Marqués <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for d25845d - Browse repository at this point
Copy the full SHA d25845dView commit details -
Add backup section detailing the backup command
This commit is adding details on the backup command docs. * An Overview introduction on the command and some caveats * Sections * Incremental Backups * Managing Bandwith Usage * Network Compression * Backup Compression * Compression algorithms * Compression workers * Compression level * Compression location * Immediate checkpoint * Streaming Backups - for pg_basebackup * Block-level incremental backups * Backup with Rsync through SSH - for rsync backups * File-level incremental backups * Cloud Snapshot Backups - for snapshot backups * Requirements and Configuration * Google Cloud Platform * Microsoft Azure * Amazon Web Services * Backup Process - snapshot backups process * Metadata - snapshots metadata * Hook scripts - using barman-cli-cloud as hook scripts with barman. * Concurrent backup of a standby * Added VLDB term to the glossary References: BAR-306 Signed-off-by: Andre <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for ea75bf5 - Browse repository at this point
Copy the full SHA ea75bf5View commit details -
Add "Postgres backup concepts and terminology" subsection to "Concepts"
Adds the "Postgres backup concepts and terminology" subsectino to the "Concepts" section. It explains some important backup concepts in the context of Postgres. References: BAR-340 Signed-off-by: Gustavo William <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 4d04e8f - Browse repository at this point
Copy the full SHA 4d04e8fView commit details -
Add "Architectural backup designs with Barman" section to new docs
Adds the "Architectural backup designs with Barman" section to the new documentation. References: BAR-330 Signed-off-by: Gustavo William <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for cea7d5a - Browse repository at this point
Copy the full SHA cea7d5aView commit details -
This commit adds all commands available in barman, the description and the details on options and fields available for each command. The commands section (commands.rst) starts with a synopsis on the `barman` command, followed by the global options, a shortcut table and a brief on exit statuses. Lastly, there is a list of the sub-commands with synopsis, description and parameters. Each command has its own `.rst` file which use the `.. include::` directive from sphinx to be able to group the commands in the `commands.rst` file. This was done to be able to produce single man pages for each command. In the `.conf` file, the commands are referenced to tell sphinx to render man pages. References: BAR-311 Signed-off-by: Andre <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 3401a03 - Browse repository at this point
Copy the full SHA 3401a03View commit details -
Add more details on how to use custom_compression_filters and related
This commit is detailing the configuration options * custom_compression_filters * custom_decompression_filters * custom_compression_magic This was brought up in the GH-270. References: BAR-236 Signed-off-by: Andre <[email protected]> Co-authored-by: Martín Marqués <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 8d85515 - Browse repository at this point
Copy the full SHA 8d85515View commit details -
Add "Barman concepts and terminology" subsection to "Concepts"
Adds the "Barman concepts and terminology" subsection to the "Concepts" section. Its purpose is to clarify some basic Barman concepts as well as explain how Barman utilizes the features of Postgres that was explained in the previous sections in order to manage backups internally. References: BAR-341 Signed-off-by: Gustavo William <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 8399ab3 - Browse repository at this point
Copy the full SHA 8399ab3View commit details -
Add pre-requisites section to new docs
Adds the "Pre-requisites" section to the new docs. For now, it only contains instructions on how to set up postgres and ssh connections. References: BAR-355 Signed-off-by: Gustavo William <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 188afd4 - Browse repository at this point
Copy the full SHA 188afd4View commit details -
Add Configuration Models section to configuration.rst
This commit adds a `Configuration Models` section to the configuration documentation to explain about models. This section is divided in `Purpose`, `Application`, `Usage`, `Benefits`. This section focuses on how models work, why they are useful, how to use it. Lastly, there is an `Examples` section divided in `Global Configuration`, `Server Configuration - Rsync`, `Server Configuration - pg_basebackup`, `Model Configuration 1` and `Model Configuration 2`. This section have some examples to help the user understand how configurations are set and how/why to work with it. References: BAR-345 & BAR-344 Signed-off-by: Andre <[email protected]> Co-authored-by: Martín Marqués <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 432e0fc - Browse repository at this point
Copy the full SHA 432e0fcView commit details -
Add missing argument to
barman config-switch
commandThis commit adds the --reset argument to the config-swith command from Barman that was missing. References: BAR-376 Signed-off-by: Andre <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for d2cf091 - Browse repository at this point
Copy the full SHA d2cf091View commit details -
Add FAQ section to the new docs
Adds the frequently asked questions section into the new documentation. References: BAR-313 Signed-off-by: Gustavo William <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for cd8bd6b - Browse repository at this point
Copy the full SHA cd8bd6bView commit details -
Add configuration reference to conf.py for MAN page 5
This commit adds the reference to the configuration.rst to create MAN page 5 for configuration settings. It also changes a little the configuration.rst formatting for the MAN page. The example in the end is being omitted for MAN page, only HTML rendering. References: BAR-369 Signed-off-by: Andre <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 3970856 - Browse repository at this point
Copy the full SHA 3970856View commit details -
Clarify note about tablespaces remapping in recovery section
Clarify an existing note about tablespaces remapping in Barman. We should not distinguish between local and remote recovery. The same logic is applied regardless of the destination. References: BAR-351 Signed-off-by: Gustavo William <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for c7767d3 - Browse repository at this point
Copy the full SHA c7767d3View commit details -
Add recover and restore concepts to the "concepts" section
Adds a brief explanation of the Postgres recovery process in the "Postgres concepts and terminology" and a brief explanation of the restore process that Barman performs in "Barman concepts in terminology" so that the reader can distinguish between both terms. References: BAR-370 Signed-off-by: Gustavo William <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 05f5da3 - Browse repository at this point
Copy the full SHA 05f5da3View commit details -
Clarify the purpose of the errors_directory in the documentation
Inspecting the code, it seems this directory is only used for duplicated WAL files and unexpected files found in the WAL archive directory. References: BAR-343 Signed-off-by: Gustavo William <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for d800b20 - Browse repository at this point
Copy the full SHA d800b20View commit details -
Standardize references for the commands
This commit goal is to change the cross-reference labels to the recommended standard detailed in the contributing section. The existing labels were all replaced and some rewording was needed to accommodate the changes. There are a few labels that have no topic written yet so it has a `-TBD` appended to it provisionally. References: BAR-379 Signed-off-by: Andre <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for cde2017 - Browse repository at this point
Copy the full SHA cde2017View commit details -
Fix section levels of the Quickstart section
There were some subsubsections which should actually be subsections. References: BAR-386 Signed-off-by: Gustavo William <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 99428c1 - Browse repository at this point
Copy the full SHA 99428c1View commit details -
Create documentation for Hook Scripts
This commit adds a new top section on `Hook Scripts`, a sub-section to `Concepts` called `Hook Scripts` and changes and add a few cross-reference labels. It also removes Hook Scripts from the backup.rst and adds the hook scripts section to the index file. References: BAR-382 Signed-off-by: Andre <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 2bf8111 - Browse repository at this point
Copy the full SHA 2bf8111View commit details -
Review and add docs for snapshot backups and cloud backups
This commit: * Add cross-reference labels to support cross-reference between pages * Add IAC to glossary * Add section about snapshots in the recovery doc * Add section about snapshots in the retetion policy doc References: BAR-353 Signed-off-by: Andre <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 28e9202 - Browse repository at this point
Copy the full SHA 28e9202View commit details -
Refactoring barman-cli and barman-cli-cloud installation
This commit refactors the installation docs to accommodate the barman-cli and barman-cli-cloud packages. there are minor differences on how to install those packages depending on the distribution used, so this is being explained in the installation.rst file. The barman_cloud installation section was also refactored to reference the installation main section. References: BAR-385 Signed-off-by: Andre <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 95034ac - Browse repository at this point
Copy the full SHA 95034acView commit details -
Apply changes to simplify building docs
In this commit we remove the python version in the tox section for docs as it isn't really necessary. References: BAR-388 Signed-off-by: Martín Marqués <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 293c5f8 - Browse repository at this point
Copy the full SHA 293c5f8View commit details -
Add instructions for installing postgres client when needed
This commit provides instructions in the Barman docs for installing the required postgres client package on the barman server in case of needing the pg_receivewal tool for WAL streaming. References: BAR-377 Signed-off-by: Martín Marqués <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 6a64503 - Browse repository at this point
Copy the full SHA 6a64503View commit details -
Add SLES-based distros installation steps to docs
This commit adds a section named `SLES-based distributions` under installation.rst explaining how to install the packages for the SLES-based distros. It also adds SLES to the glossary. References: BAR-390 Signed-off-by: Andre <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for d494f9a - Browse repository at this point
Copy the full SHA d494f9aView commit details -
Apply changes from last review
Remove SLES 12 from docs and add suggestion to the note. References: BAR-390 Signed-off-by: Andre <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 09cf8db - Browse repository at this point
Copy the full SHA 09cf8dbView commit details -
Use
delete_this
annotation during the backup delete and cron processesAdd a delete annotation, which is applied to a backup at the start of the delete process and only removed after it has finished. The deletion process also ensures the `backup.info` file is the last to be deleted. If a crash occurs, this file will remain, and the system can resume the deletion upon recovery. In addition, `cron_retention_policy` has been updated to check for backups marked with this new annotation and, if found, the cron job will complete the deletion process, preventing potential issues with orphaned files and inaccurate backup size calculations. References: BAR-244 Signed-off-by: Barbara Leidens <[email protected]> Signed-off-by: Giulio Calacoci <[email protected]> Co-authored-by: Martín Marqués <[email protected]> Co-authored-by: Israel <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 15eed6f - Browse repository at this point
Copy the full SHA 15eed6fView commit details -
Add barman-wal-{restore,archive} to the documentation
This commit: * Add command references for barman-wal-restore and barman-wal-archive in separate files and include them under the Commands Reference under a new section named `barman-cli commands`. * Change cross-reference label in the quickstart * Add `WAL archiving via archive_command` to pre_requisites.rst * Add documentation about barman-wal-restore to `Fetching WALs from Barman` section under recovery. This commit is also adding a tip note to the `Fetching WALs from Barman` section about performance gains when pg_wal and spool_dir are in the same filesystem. References: BAR-387 & BAR-205 Signed-off-by: Andre <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 240816a - Browse repository at this point
Copy the full SHA 240816aView commit details -
Change references in docs from v17 to current
Postgres 17 has been released so we can now point to the current postgres documentation for incremental backup information. References: BAR-282 Signed-off-by: Martín Marqués <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 7b0791e - Browse repository at this point
Copy the full SHA 7b0791eView commit details -
Correct definition of positive and non-negative integers
In the documentation we made use of phrases like "positive integer greater than zero", but the term positive interger doesn't include the zero, so it's redundant the "greater than zero" part. References: BAR-346 Signed-off-by: Martín Marqués <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 044de0e - Browse repository at this point
Copy the full SHA 044de0eView commit details -
Add note on recommendation to always stream WALs from primary node
This commit adds a note in the documentations in the WAL streaming section of the architectures recommending the users to always stream from the primary node. It also changes some of the references and splits the installation of the postgres clients from the streaming setup. References: BAR-368 Signed-off-by: Martín Marqués <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 93d4031 - Browse repository at this point
Copy the full SHA 93d4031View commit details -
References: BAR-395 Signed-off-by: Martín Marqués <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for e351fd3 - Browse repository at this point
Copy the full SHA e351fd3View commit details -
Change extension of included documentation files
When including files which contain reference anchors, sphinx will complain that there are duplicate labels. The workaround is to exclude those patterns. But in order to not create a huge list of names in `exclude_patters` list, we changed the extension of those included files from `.rst` to `inc..rst`, and then just added `**/*.inc.rst` to the `exclude_patterns` list. References: BAR-395 Signed-off-by: Martín Marqués <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 6d19342 - Browse repository at this point
Copy the full SHA 6d19342View commit details -
Fix JSON code and multiple missing references
References: BAR-395 Signed-off-by: Martín Marqués <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 2598613 - Browse repository at this point
Copy the full SHA 2598613View commit details -
Fix reference for parallel jobs in documentation
References: BAR-329 Signed-off-by: Martín Marqués <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 5b7d54d - Browse repository at this point
Copy the full SHA 5b7d54dView commit details -
Replace Material for Sphinx theme with PyData theme
Although the Material for Sphinx theme looked very nice, we had an issue with it in regards to the TOC tree: either it renders all tree nodes expanded, or it renders only the current section nodes expanded. We have been looking for alternative themes that could provide the capability of expanding and contracting the tree nodes, and we found these two: * Read The Docs * PyData This commit delivers that feature by using PyData theme. We chose it because the docs looked nicer on PyData than on Read The Docs theme. It is worth noting that PyData renders the HTML docs a bit different than Material and Read The Docs. Instead of merging the documents tree with the page contents to create the left sidebar tree, PyData splits the navigation through different parts: * Top navbar: level-0 documents of the TOC tree. * Left sidebar: level-1+ documents of the TOC tree. * Right sidebar: active page content tree. With that in mind, we had to apply some changes to the structure of the docs: * We had a single level-0 document defined in the root `index.rst`. Now we have these level-0 documents: * `user_guide/index.rst`: contains most of the previously existing documents, now as subdocuments under `user_guide/`. * `contributor_guide/index.rst`: the former `contributing.rst`, with a TOC tree. The subsections of the former `contributing.rst` were turned into separate subdocuments under `contributor_guide`. This was done because we had different logical pieces there, making sense to have them in separate subdocuments. * `release/index.rst`: the former `releases.rst`. * `faq/index.rst`: the former `faq.rst`. * `license/index.rst`: the former `license.rst`. Besides that, these changes were applied to accomplish that goal: * A new `index_pdf.rst` was created just so we have a different depth of the TOC tree between HTML and PDF outputs. As the `index.rst` is used by the main page of PyData, in that page we want only level-0 heads. On the other hand, when building the index for the PDF, we want more levels for easy links to subsections. * Image paths were fixed. They were using relative paths which no longer work, and that was preventing the PDF document to be built. Now we use absolute path when referencing images in the documentation. * In Sphinx configuration: * Theme `sphinx_material` replaced with `pydata_sphinx_theme` * `html_theme_options` value changed to use options exposed by the new theme, in short: * Set up a couple icon buttons on the top nav. * Show 4 levels in the page content tree, and a edit page button in the right sidebar. * Hide the footer. * `html_side_bars`: to use the beauty left sidebar of PyData, with expandable/collapsable nodes. * `man_pages` now reference the new location of subdocuments, under the `user_guide` folder. * Autodoc of modules were moved from root to the `contributor_guide` folder. * Latex builder excludes was updated to reference the new path. * `latex_documents` was changed to reference the new `index_pdf.rst` file, which contains a different TOC tree depth than the default one used by HTML. The `tox.ini` config was updated to reflect the usage of the new theme. A side fix implemented by this commit: we fix the `exclude_patterns` conf variable, so we don't exclude the `*.inc.rst` files when building man pages. That is required so we are able to build both a complete man page, and the split man pages. References: BAR-394. Signed-off-by: Israel Barth <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for a1d3c17 - Browse repository at this point
Copy the full SHA a1d3c17View commit details -
Fix of documentation while proof-reading
- Change message in license to reflect that we will acknowledge contribution in release notes. - Unify the usage of Postgres instead of PostgreSQL. There are exceptions, like when refering to something which's name contains PostgreSQL, like "The PostgreSQL Administration Cookbook", or "The PostgreSQL Project". - Add a paragraph at the beginning of the concepts section mentioning to the reader that if they are familiar with the topic of backups in Postgres, they should skip to the "Barman concepts and terminology" section. - Change apt-get for apt. - In the installation section list the packages that will be installed instead of using "others". - Split the Postgres connection section from pre-requisites into "Postgres user" and "Postgres Connection". - Add references to Postgres docs for configuring hba.conf, and to other parts of the barman docs on user setup. - Add geo-redundancy section. The geo-redundancy section is empty, but this fixes the last two references that were broken in the docs. - Move the backup from standby section before snapshot backups. - Relabel master as primary. - Mention `barman keep` in the retention policy section. I added a subsection on the usage of `barman keep` in the retention policy section. This was something that I found missing when reading the retention policy. - Standardize lists: Some lists were out of the pattern, either using `-` instead of `*`, or ending items in `;` instead of `.`. - Don't use Italics for emphasis. - Standardize usage of monospace References: BAR-397 Signed-off-by: Martín Marqués <[email protected]> Signed-off-by: Israel Barth <[email protected]> Co-authored-by: Andre Marchesini <[email protected]> Co-authored-by: Gustavo William <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 1567da1 - Browse repository at this point
Copy the full SHA 1567da1View commit details -
Remove build-documentation action
This commit removes this action that is not needed anymore. This was actually used in the documentation workflow directly. References: BAR-363 Signed-off-by: Andre <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 0b7a2c1 - Browse repository at this point
Copy the full SHA 0b7a2c1View commit details -
Update man page generation when building packages
This commit: 1. Modify .gitignore to allow build files for man pages to be sent to the remote repository. 2. Add reference to man page files in the new_docs/conf.py and setup.py. 3. Add man pages that were manually built. 4. Change MANIFEST.in, removing old docs and adding new docs sample config files. References: BAR-404 Signed-off-by: Andre <[email protected]> Add man page files to the remote repository When building packages, the foundation packaging workflow uses these files in the deb/debian/rules and rpm/barman.spectemplate (and rpm/barman.foundationspectemplate) to properly set the manuals for the commands by packages (barman, barman-cli and barman-cli-cloud). These directories mentioned previously are in the barman-packaging repository. References: BAR-404 Signed-off-by: Andre <[email protected]> Move files from /doc to /new_docs These files are used as doc files for rpm and deb packaging. They are present in the deb/debian/barman.install and in the rpm/barman.spectemplate (and rpm/barman.foundationspectemplate). They are required to properly build packages for the barman software. References: BAR-404 Signed-off-by: Andre <[email protected]> rebase Signed-off-by: Andre <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for e42720f - Browse repository at this point
Copy the full SHA e42720fView commit details -
Refactor
walarchive
client to add FIPS supportThis commit: 1. Adds `--md5` argument to the barman-wal-archive command. This is needed to keep compatibility between client and server version (PG server and Barman server). If the barman server is behind the PG server, this flag is needed so the client uses the `md5` hash algorithm to create the checksums. The barman server can only understand `md5` checksums at this point. 2. Changes method name from `md5copyfileobj` to `hashCopyfileobj` and refactor the code. A new paramter was added called `hash_algorithm`. This name is generic since we will use md5 or sha256 depending on the case. The code was changed to accommodate the use of one of the two hash algorithms. 3. Adds an __init__ method to the ChecksumTarFile class so it is initilized with hash_algorithm and HASHSUMS_FILE attributes for `sha256`. This makes it easy to use the attributes in the class scope. The default value could have been set to `None` but it is safer to keep a default value here since the methods using this cannot receive None as an input. 4. Modifies the `addfile` method so it uses the new method `hashCopyfileobj` with the new hash algorithm attribute as a parameter. 5. Modifies the `close` method so it uses generic names for variables. 6. Modifies the __init__ method from RemotePutWal class so it checks for the new `--md5` flag, sets the correct algorithms and HASHSUMS file and passes to the tar object. 7. Refactors `put_wal` command to keep compatibility between server and client checksum calculations. The iteration on the tar file is in streaming mode, so we cannot use random access. With this, we need to iterate over the entire tar file, get the hash algorithm from the name of the streamed HASHSUMS file and iterate over the dictionary to calculate the checksums with the correct hash algorithm. 8. Refactored the `file_md5` method from utils so it has a generic name to calculate with a hash algorithm. A new parameter was added called `hash_algorithm`. 9. Add release_note for the feature - Add FIPS support References: BAR-155 Signed-off-by: Andre <[email protected]> Signed-off-by: Giulio Calacoci <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for fcc4710 - Browse repository at this point
Copy the full SHA fcc4710View commit details -
Refactor broken tests to accommodate changes
This commit refactors all broken tests and adds use cases for both algorithms and hashsum files. References: BAR-155 Signed-off-by: Andre <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 744b128 - Browse repository at this point
Copy the full SHA 744b128View commit details -
Remove duplicate paragraph on barman-cloud-backup section
Removes duplicate information present on the new docs on the barman-cloud-backup section. References: BAR-422 Signed-off-by: Gustavo William <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 13f7907 - Browse repository at this point
Copy the full SHA 13f7907View commit details -
Replace recover by restore in the documentation
This commit: 1. Replaces recover by restore for clarity. One good statement of why we did this replacement is the following: Barman restores a backup, preparing it for Postgres recovery. When started, Postgres enters recovery mode, applying WALs until reaching consistency or a specified target. 2. Replaces the static man page barman-recover for barman-restore. References: BAR-337 Signed-off-by: Andre <[email protected]> Co-authored-by: Israel Barth <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 4296995 - Browse repository at this point
Copy the full SHA 4296995View commit details -
Replace recover by restore in the code base
This commit replaces the recover word by restore to give more clarity to the user when working with the restore process from Barman. Some of the important changes are: 1. Change the recover command to be `barman restore` 2. Change output messages when working with the command. References: BAR-337 Signed-off-by: Andre <[email protected]> Co-authored-by: Israel Barth <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for cedfdf8 - Browse repository at this point
Copy the full SHA cedfdf8View commit details -
Refactor testes broken by the code base modification
This commit addresses all the broken tests created from the changes made to the recover command. References: BAR-337 Signed-off-by: Andre <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for f61f533 - Browse repository at this point
Copy the full SHA f61f533View commit details -
Lighten standby checks related to conninfo and primary_conninfo
When backing up a standby server, Barman performs some checks to assert that `conninfo` is really pointing to a standby (in recovery mode) and that `primary_conninfo` is pointing to a primary (not in recovery). The problem, as reported in the issues #704 and #744, is that when a failover occurs, the `conninfo` will now be pointing to a primary instead and the checks will start failing, requiring the user to change Barman configs manually whenever a failover occurs. This commit fixes the issue by making such checks non-critical, which means they will still fail but Barman will keep operating regardless. Essentially, Barman will ignore `primary_conninfo` if `conninfo` does not point to a standby. Warnings about this misconfiguration will also be emited whenever running any Barman command so the user can be aware. References: BAR-348 Signed-off-by: Gustavo William <[email protected]> Signed-off-by: Giulio Calacoci <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 921be5d - Browse repository at this point
Copy the full SHA 921be5dView commit details -
Fix broken tests after cheging conninfo and primary_conninfo checks
Fixes some tests that were broken after lightening some checks regarding `conninfo` and `primary_conninfo` in a previous commit. References: BAR-348 Signed-off-by: Gustavo William <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 68de356 - Browse repository at this point
Copy the full SHA 68de356View commit details -
Change config-switch argument description when using --help
This commit changes the model_name argument description from the config-switch command to be clearer for a user that wants to use the command. The model_name argument is an optional argument but it's also a positional argument. As the help output has positional argument and optional argument sections, the user can get confused working with this command. The model_name appears in the positional argument section of the help command. References: BAR-378 Signed-off-by: Andre <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for e813a03 - Browse repository at this point
Copy the full SHA e813a03View commit details -
Run isort on code to remove unused imports and blank lines
Execute isort on the whole projet cleaning up and sorting imports in both tests and code. References: bar-429 Signed-off-by: Giulio Calacoci <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 2a579d1 - Browse repository at this point
Copy the full SHA 2a579d1View commit details -
Import restore function from barman.cli
Signed-off-by: Giulio Calacoci <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for d4ef8d8 - Browse repository at this point
Copy the full SHA d4ef8d8View commit details
Commits on Nov 5, 2024
-
Add Dockerfile and build script for the new docs
This commit creates a Dockerfile in the new_docs folder that can be used as a base environment to build the docs. A new script to build the docs is also created. References: BAR-363 Signed-off-by: Andre <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for e65a3c2 - Browse repository at this point
Copy the full SHA e65a3c2View commit details -
Fix issues in
.isort.cfg
configuration fileThis issue was identified while working on BAR-289. The `linter.yml` had a failure because of wrong formatting in the configuration file for Isort. Turns out it was defined using `toml` syntax instead of `configparser` syntax. This commit fixes that oversight. References: BAR-315. Signed-off-by: Israel Barth <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for dfe8170 - Browse repository at this point
Copy the full SHA dfe8170View commit details -
Fix issues in Flake8 configuration for
super-linter
This issue was identified while working on BAR-289. The `linter.yml` is using a `.flake8` file which contains a set of configuration "A", while `tox` is using a `tox.ini` file which contains another set of configuration "B". This commit fixes that oversight. Now both `super-linter` and `tox` will use the very same `tox.ini`, so we have a single source of truth for the Flake8 configuration. References: BAR-315. Signed-off-by: Israel Barth <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 25ce3f9 - Browse repository at this point
Copy the full SHA 25ce3f9View commit details -
This commit fixes the following issues reported by `shellcheck`: ```text In .github/foundation/security/scan-hooks.sh line 10: source .venv/bin/activate ^----------------^ SC1091 (info): Not following: .venv/bin/activate: openBinaryFile: does not exist (No such file or directory) In doc/build/build line 44: cp -va *.html *.pdf "${DISTDIR}" ^-- SC2035 (info): Use ./*glob* or -- *glob* so names with dashes won't become options. ^-- SC2035 (info): Use ./*glob* or -- *glob* so names with dashes won't become options. In scripts/release.sh line 22: BASE="$(dirname $(cd $(dirname "$0"); pwd))" ^------------------------^ SC2046 (warning): Quote this to prevent word splitting. ^-------------^ SC2046 (warning): Quote this to prevent word splitting. In scripts/release.sh line 27: if ! git tag -s -m "Release ${VERSION}" release/${VERSION} ^--------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: if ! git tag -s -m "Release ${VERSION}" release/"${VERSION}" In scripts/set-version.sh line 24: BASE="$(dirname $(cd $(dirname "$0"); pwd))" ^------------------------^ SC2046 (warning): Quote this to prevent word splitting. ^-------------^ SC2046 (warning): Quote this to prevent word splitting. In scripts/set-version.sh line 63: if [ "$1" == false ] ^-- SC3014 (warning): In POSIX sh, == in place of = is undefined. In scripts/set-version.sh line 70: echo $release_date ^-----------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: echo "$release_date" In scripts/set-version.sh line 76: release_date=$(get_date $DATE) ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: release_date=$(get_date "$DATE") In scripts/set-version.sh line 111: if branch=$(git symbolic-ref --short -q HEAD) && [ $branch = 'master' ] ^-----^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: if branch=$(git symbolic-ref --short -q HEAD) && [ "$branch" = 'master' ] In scripts/set-version.sh line 138: if [ "$DOCKER" == true ] ^-- SC3014 (warning): In POSIX sh, == in place of = is undefined. In sphinx/generate_docs.sh line 20: BASEDIR=$(cd ${0%/*}; pwd ) ^--------^ SC2164 (warning): Use 'cd ... || exit' or 'cd ... || return' in case cd fails. ^-----^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: BASEDIR=$(cd "${0%/*}" || exit; pwd ) In sphinx/generate_docs.sh line 78: printf "${RED}${1}${RSET} " ^-------------------^ SC2059 (info): Don't use variables in the printf format string. Use printf '..%s..' "$foo". In sphinx/generate_docs.sh line 89: --) ^-- SC2214 (warning): This case is not specified by getopts. In sphinx/generate_docs.sh line 104: BARMAN_DIR=$(cd "$BASEDIR/.."; pwd) ^--------------^ SC2164 (warning): Use 'cd ... || exit' or 'cd ... || return' in case cd fails. Did you mean: BARMAN_DIR=$(cd "$BASEDIR/.." || exit; pwd) In sphinx/generate_docs.sh line 106: BARMAN_DIR=$(cd "$1"; pwd) ^-----^ SC2164 (warning): Use 'cd ... || exit' or 'cd ... || return' in case cd fails. Did you mean: BARMAN_DIR=$(cd "$1" || exit; pwd) In sphinx/generate_docs.sh line 113: cd "${BASEDIR}" ^-------------^ SC2164 (warning): Use 'cd ... || exit' or 'cd ... || return' in case cd fails. Did you mean: cd "${BASEDIR}" || exit In sphinx/generate_docs.sh line 120: ls "${BASEDIR}"/docs/*.rst | grep -v 'index.rst$' | xargs -trI X rm -f X ^-- SC2010 (warning): Don't use ls | grep. Use a glob or a for loop with a condition to allow non-alphanumeric filenames. In sphinx/generate_docs.sh line 127: make ${GEN_MODE} ^---------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: make "${GEN_MODE}" ``` References: BAR-315. Signed-off-by: Israel Barth <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 6bca79d - Browse repository at this point
Copy the full SHA 6bca79dView commit details -
This commit fixes the following issue reported by `markdownlint`: ```text INSTALL.md:1 MD041/first-line-heading/first-line-h1 First line in a file should be a top-level heading [Context: "## Barman INSTALL instructions"] ``` Besides that, it configures `super-linter` to skip Markdown files under `doc/` and `sphinx/` directories. Those directories contain the source code for the current Barman documentation, which is going to be replaced soon. References: BAR-315. Signed-off-by: Israel Barth <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for b13b192 - Browse repository at this point
Copy the full SHA b13b192View commit details -
References: BAR-356 Signed-off-by: Martín Marqués <[email protected]> Signed-off-by: Giulio Calacoci <[email protected]> Signed-off-by: Israel Barth <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 4988f3a - Browse repository at this point
Copy the full SHA 4988f3aView commit details -
References: BAR-244 Signed-off-by: Barbara Leidens <[email protected]> Signed-off-by: Giulio Calacoci <[email protected]> Co-authored-by: Martín Marqués <[email protected]> Co-authored-by: Israel <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for f80a779 - Browse repository at this point
Copy the full SHA f80a779View commit details -
Add release notes of support for PGE 17 and EPAS 17
Add a release note about the validation of the latest Barman features in both PGE 17 and EPAS 17. References: BAR-331 Signed-off-by: Gustavo William <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for d467a46 - Browse repository at this point
Copy the full SHA d467a46View commit details -
Update man page generation when building packages
This commit: 1. Modify .gitignore to allow build files for man pages to be sent to the remote repository. 2. Add reference to man page files in the new_docs/conf.py and setup.py. 3. Add man pages that were manually built. 4. Change MANIFEST.in, removing old docs and adding new docs sample config files. References: BAR-404 Signed-off-by: Andre <[email protected]> Add man page files to the remote repository When building packages, the foundation packaging workflow uses these files in the deb/debian/rules and rpm/barman.spectemplate (and rpm/barman.foundationspectemplate) to properly set the manuals for the commands by packages (barman, barman-cli and barman-cli-cloud). These directories mentioned previously are in the barman-packaging repository. References: BAR-404 Signed-off-by: Andre <[email protected]> Move files from /doc to /new_docs These files are used as doc files for rpm and deb packaging. They are present in the deb/debian/barman.install and in the rpm/barman.spectemplate (and rpm/barman.foundationspectemplate). They are required to properly build packages for the barman software. References: BAR-404 Signed-off-by: Andre <[email protected]> rebase Signed-off-by: Andre <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 034e8df - Browse repository at this point
Copy the full SHA 034e8dfView commit details -
References: BAR-155 Signed-off-by: Andre <[email protected]> Signed-off-by: Giulio Calacoci <[email protected]> Signed-off-by: Israel Barth <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 742c792 - Browse repository at this point
Copy the full SHA 742c792View commit details -
References: BAR-348 Signed-off-by: Gustavo William <[email protected]> Signed-off-by: Giulio Calacoci <[email protected]> Signed-off-by: Israel Barth <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for ccb6d02 - Browse repository at this point
Copy the full SHA ccb6d02View commit details -
This workflow should no longer exist in the public repository, so this commit removes the workflow. References: BAR-434. Signed-off-by: Israel Barth <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for b89f9c2 - Browse repository at this point
Copy the full SHA b89f9c2View commit details
Commits on Nov 11, 2024
-
Modify release notes and include them in the docs
We removed the old `NEWS` file and replaced it with a new `RELNOTES.md` file. The new file is better structured and written in markdown language. This new markdown file has been included in the new user documentation as well, so they can access that info both from GitHub and from the user docs. References: BAR-290. Signed-off-by: Giulio Calacoci <[email protected]> Signed-off-by: Israel Barth <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 3a7e023 - Browse repository at this point
Copy the full SHA 3a7e023View commit details -
Amend release note related with barman keep and incremental backups
In the release notes we have this message: "`barman keep` command can only be applied to full backups when `backup_method = postgres`. If a full backup has incremental backups that depend on it, all of the incrementals are also kept by Barman." In fact, the incremental backups are marked as valid not kept (user can still delete them). This commit amends the release note to be precise on this matter. References: BAR-408 Signed-off-by: Andre <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for eeb66b6 - Browse repository at this point
Copy the full SHA eeb66b6View commit details -
Change doc mentioning only MD5SUMS file, SHA256SUMS is included
This commit changes the documentation of the put-wal command that was only mentioning the usage of MD5SUMS file for validation. In BAR-155, we added support for FIPS compliance making sha256 the default algorithm, so this needs to reflect in the whole doc. Barman can still use md5, but it is not the default anymore. This also adds the man pages where put-wal is mentioned. References: BAR-437 & BAR-155 Signed-off-by: Andre <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 1034125 - Browse repository at this point
Copy the full SHA 1034125View commit details
Commits on Nov 12, 2024
-
Refactor
_backup_report
method to deal with keep standalone targetsThis commit refactors the _backup_report method for both window and redundancy retention policies. The code now handles the case when retention policy status of the root backup is KEEP_STANDALONE and the incrementals are in or out of the retention policy rule. For KEEP_FULL, it remains the same logic. For KEEP_STANDALONE, when the root backup is within the retention policy rule, the incrementals are considered valid. When this root backup falls out of the retention policy rule, it is considered obsolete and will be removed by the maintenance cron command. This commit also modifies the `_propagate_retention_status_to_children` so it does not have any logic regarding the retention policy. Now it just propagates the status without checking the keep flag. This logic was moved to the _backup_report method, so we handle FULL and STANDALONE KEEP flags. The reason to move this was: 1. The checks for retention policy status should be a "business" logic for _backup_report and the _propagate_retention_status_to_children should only handle the propagation of the status. 2. We have both STANDALONE and FULL logic in the same place. References: BAR-366 Signed-off-by: Andre <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for a781cb4 - Browse repository at this point
Copy the full SHA a781cb4View commit details -
Add and refactor tests for the proper use cases
This commit refactors existing tests and adds new tests to cover the new logic implemented for STANDALONE backups. References: BAR-366 Signed-off-by: Andre <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for a33429d - Browse repository at this point
Copy the full SHA a33429dView commit details -
Modify docs according to the new behavior
This commit modifies the ` Retention policy for block-level incremental backups` section in the retetion policies documentation. This modification is made regarding the change on the behavior of the propagation of the KEEP flags from the root backup to its incremental backups. References: BAR-366 Signed-off-by: Andre <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 2da9a9b - Browse repository at this point
Copy the full SHA 2da9a9bView commit details -
This commit adds a release note about this modification. References: BAR-366 Signed-off-by: Andre <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 3514fd9 - Browse repository at this point
Copy the full SHA 3514fd9View commit details -
Add a release note regarding the removal of distros packaging support
This commit adds a release note that should have been created together with the BAR-389. BAR-389 is a PR about removing packaging and smoke tests support for RHEL7, debian10 and ubuntu1804. References: BAR-415 & BAR-389 Signed-off-by: Andre <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 1d596e3 - Browse repository at this point
Copy the full SHA 1d596e3View commit details -
Avoid s3 multipart uploads for small files
As it's been reported in the issue #1018, it seems that using the `upload_fileobj` method to upload WAL files has more latency than using `put_object`. Various tests were run using a Python script similar to the one given in the issue and the results were always similar to this: The average latency for a file of 16 MB (default size of WAL files): - using `upload_fileobj`: 4805.58967328ms - using `put_object`: 3744.6347383500006ms In this case, `put_object` is about 21% faster. The average latency for file of 1GB (maximum size of relational files, by default): - using `upload_fileobj`: 102020.6359049ms - using `put_object`: 125556.6254884ms In this case, `upload_fileobj` is about 18% faster. So it really depends on the file size. I don't quite know the reason for sure, but `upload_fileobj` uses multipart upload depending on the file size while `put_object` always upload files in a single PUT request, so that could add to the reason as multipart uploading requires some extra steps. AWS recommends considering multipart upload for files above 100MB. In some testings I found out that the difference between both methods really starts appearing for files around 150MB. But the results can vary a lot from test to test, so I suppose it's better to rely on AWS numbers as they probably have done better and more controlled tests than me in order to write down that number. That said, this commit slightly changes the upload method we call on the boto3 library. We still use `upload_fileobj`, but now we pass a config object containing a `multipart_threshold` value of 100MB, which determines when multipart uploads should be triggered. When a file smaller than that is uploaded, boto3 will actually trigger the `put_object` behind the scenes. Therefore, this is a simpler change as replacing it for `put_object` directly would involve more code changes and the methods don't have quite the same signature. I also tested using `upload_fileobj` with different threshold values and the results were pretty similar to the previous ones i.e. small files being uploaded faster when multipart is not used and vice-versa, so it must really use `put_object` behind the scenes. Lastly, I also compared the changed code with the previous running on a real Postgres cluster on an AWS instance, where network is more stable, and the results were similar, showing a performance gain of around 15% when avoiding multipart upload for 16MB WAL files. Links: - original issue: #1018 - AWS recommendation of when using multipart uploads: https://docs.aws.amazon.com/AmazonS3/latest/userguide/mpuoverview.html - boto3 code which I think is used by `upload_fileobj`: https://github.com/boto/s3transfer/blob/develop/s3transfer/__init__.py#L727-L755 - `upload_fileobj` command ref: https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/s3/client/upload_fileobj.html References: BAR-374 Signed-off-by: Gustavo William <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 55d9a7b - Browse repository at this point
Copy the full SHA 55d9a7bView commit details -
Fix broken tests due to changing multipart upload
This commit fixes some tests broken in a previous commit where some configurations where introduced in the `upload_fileobj` method call of the boto3 library in order to avoid multipart upload for small files. References: BAR-374 Signed-off-by: Gustavo William <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 62741ca - Browse repository at this point
Copy the full SHA 62741caView commit details -
Add release notes to BAR-374, which changed the upload of WAL files to no longer use multipart uploads on S3 buckets. References: BAR-374 Signed-off-by: Gustavo William <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 22e140e - Browse repository at this point
Copy the full SHA 22e140eView commit details -
Removed from docs the `make \-C new_docs clean` command. Modified the default behavior of the `tox \-e command` to build both html and man doc when executed without positional arguments. * use `tox \-e docs \-\- html` for HTML * use `tox \-e docs \-\- man` for Linux man pages Added a new command `tox \-e docs\-clean` to cleanup the whole doc folder using sphinx subcommands References: bar-438 Signed-off-by: Giulio Calacoci <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 6e5e103 - Browse repository at this point
Copy the full SHA 6e5e103View commit details -
Add zstd compression for WAL files
Introduced support for zstd compression on WAL files. It can be enabled by specifying `zstd` in the `compression` server parameter. WALs will be compressed when archived in the Barman's WAL archive. On the cloud, it can ne enabled by specifying --zstd when running `barman-cloud-wal-archive`. References: BAR-423 Signed-off-by: Gustavo William <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 29ca1c2 - Browse repository at this point
Copy the full SHA 29ca1c2View commit details -
Add tests to zstd WAL compression implementation
This commit adds some tests to the zstd WAL compression implementation introduced in a previous commit. References: BAR-423 Signed-off-by: Gustavo William <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for c1562a1 - Browse repository at this point
Copy the full SHA c1562a1View commit details -
This commit adds the release notes for BAR-423, which introduces zstandard compression support for WAL files. References: BAR-423 Signed-off-by: Gustavo William <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for a7a8bbd - Browse repository at this point
Copy the full SHA a7a8bbdView commit details -
Add aws snapshot lock feature to Barman
This commit: 1. Add fields to the server configs: - aws_snapshot_lock_mode - aws_snapshot_lock_duration - aws_snapshot_lock_cool_off_period - aws_snapshot_lock_expiration_date 2. Add new args to the cloud-backup client 3. Add new args for the cloud-backup that were also added for the server configuration: - --aws-snapshot-lock-mode - --aws-snapshot-lock-cool-off-period - --aws-snapshot-lock-expiration-date - --aws-snapshot-lock-duration 4. Add functions to utils.py to check for contrains needed for these new fields: - lock_mode (compliance or governance) - lock_duration_range from 1 to 36500 days - lock_cool_off_period from 1 to 72 hours - lock_expiration_date format 5. Added AWS validation to `_validate_config`. 6. Add new validation for aws lock configs Adds a new method in the SnapshotBackupExecutor class called `_validate_aws_lock_configuration` to validate configurations for the server. This method is used by the `validate_configuration` method in case there is a "aws_snapshot_lock_mode" config for the server and the `snapshot_provider` = 'aws'. 7. Add lock snapshot code feature for aws provider 1. Add a `_lock_snapshot` method that calls the boto3 API lock_snapshot method. 2. Call `_lock_snapshot` in the `take_snapshot_backup` method for each snapshot created from snapshot_disks. 3. Modify waiter.wait() call to use SnapshotIds directly instead of filtering by the snapshot_ids. 4. Add error_code "SnapshotLocked" to `_delete_snapshot` and raise SystemExit so we break when we try to delete a locked snapshot with an error message. 8. Add fields to snapshot interfaces and fix a bug 9. Add fields to method that gets the provider interface. In this case, for AWS. 10. Modify `get_snapshot_interface_from_backup_info` to fix a bug when using the barman-cloud-backup-delete client command. Previously, when using the command, it does not expect an aws_region argument, so the code was reaching a point where there was no profile found (profile = None). With this change, we removed the dependency of the profile variable to the region. References: BAR-242 Signed-off-by: Andre <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for d2cab3a - Browse repository at this point
Copy the full SHA d2cab3aView commit details -
Fix broken tests and add tests accounting for snapshot lock feature
This commit: 1. Fix tests broken by the implementation of the new feature. 2. Add new unit tests for parsers, _lock_snapshot method, range check, test_delete_snapshot_with_lock, lock_mode. 3. A method was slightly modified to accomodate the lock_snapshot feature, such as `test_take_snapshot_backup`. References: BAR-242 Signed-off-by: Andre <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for d919a16 - Browse repository at this point
Copy the full SHA d919a16View commit details -
Add documentation about aws snapshot lock
This commit: 1. Add doc about AWS snapshot lock to the backup documentation. 2. Add info about AWS snapshot lock to the barman-cloud-backup command documentation 3. Change barman-cloud-backup.1 man page for the client because of the changes made to the file. References: BAR-242 Signed-off-by: Andre <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for c6a1dd6 - Browse repository at this point
Copy the full SHA c6a1dd6View commit details -
This commit adds a release note for this feature. References: BAR-242 Signed-off-by: Andre <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for d6e782c - Browse repository at this point
Copy the full SHA d6e782cView commit details -
Add section on geographical redundancy for Barman server
References: BAR-393 Signed-off-by: Martín Marqués <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for bfe2305 - Browse repository at this point
Copy the full SHA bfe2305View commit details -
Add option --primary to the sync-info commands
We missed adding the optional `--primary` option to the `sync-info` command for the man pages. This was spotted by Andre Marchesini in the review. References: BAR-393 Signed-off-by: Martín Marqués <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 3f67868 - Browse repository at this point
Copy the full SHA 3f67868View commit details -
Add lz4 compression for WAL files
Introduced support for lz4 compression on WAL files. It can be enabled by specifying `lz4` in the `compression` server parameter. It can also be specified using the --lz4 command line argument in barman-wal-restore to compress WAL files at restore time. Lastly, a --lz4 command line argument was also added to barman-cloud-wal-archive for compression on cloud uploads. References: BAR-264 Signed-off-by: Gustavo William <[email protected]> Signed-off-by: Israel Barth <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 686fd86 - Browse repository at this point
Copy the full SHA 686fd86View commit details -
Add tests to lz4 WAL compression implementation
This commit adds some tests to the lz4 WAL compression implementation introduced in a previous commit. References: BAR-264 Signed-off-by: Gustavo William <[email protected]> Signed-off-by: Israel Barth <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 68bbf40 - Browse repository at this point
Copy the full SHA 68bbf40View commit details -
This commit adds the release notes for BAR-264, which introduced lz4 compression support for WAL files. References: BAR-264 Signed-off-by: Gustavo William <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for d478c7b - Browse repository at this point
Copy the full SHA d478c7bView commit details -
Add feature to create tags when creating snapshot backups
This commit adds a way to create tags when taking snapshot backups with cloud scripts. A new flag called tags can be used to tag snapshots for AWS when creating backups. Usage, e.g., tag1,val1 tag2,val2 References: BAR-417 Signed-off-by: Andre <[email protected]> Co-authored-by: Israel <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 51a23bc - Browse repository at this point
Copy the full SHA 51a23bcView commit details -
Modify test to also test for tags
This commit makes a small modification on a unit test to also test for tags being applied to the snapshot when created. References: BAR-417 Signed-off-by: Andre <[email protected]> Co-authored-by: Israel <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for b714091 - Browse repository at this point
Copy the full SHA b714091View commit details -
Add documentation for snapshot tags when using client
Add info to doc of the barman-cloud-backup command and the build for the man page. References: BAR-417 Signed-off-by: Andre <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 5e80784 - Browse repository at this point
Copy the full SHA 5e80784View commit details -
This commit adds a release note for the ticket bar-417. References: BAR-417 Signed-off-by: Andre <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for b1dbf22 - Browse repository at this point
Copy the full SHA b1dbf22View commit details
Commits on Nov 18, 2024
-
Add content to the documentation for trobleshooting
We copied the original piece of documentation from the old documentation and added a few other commands which are useful for debugging barman issue. References: BAR-406 Signed-off-by: Martín Marqués <[email protected]> Signed-off-by: Israel Barth <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 8669527 - Browse repository at this point
Copy the full SHA 8669527View commit details -
Add xz compression for WAL files
Introduced support for xz compression on WAL files. It can be enabled by specifying `xz` in the `compression` server parameter. WALs will be compressed when entering the Barman's WAL archive. For the cloud, it can ne enabled by specifying `--xz` when running `barman-cloud-wal-archive`. References: BAR-265 Signed-off-by: Gustavo William <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 288135c - Browse repository at this point
Copy the full SHA 288135cView commit details -
Add tests to xz WAL compression implementation
This commit adds some tests to the xz WAL compression implementation introduced in a previous commit. It also fixes very small tests that were broken. References: BAR-265 Signed-off-by: Gustavo William <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for d5538ea - Browse repository at this point
Copy the full SHA d5538eaView commit details -
This commit adds the release notes for BAR-265, which introduced xz compression support for WAL files. References: BAR-265 Signed-off-by: Gustavo William <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 924c896 - Browse repository at this point
Copy the full SHA 924c896View commit details -
Remove
sphinx
directory and renamedoc
asold_docs
The `sphinx` directory used to contain some very old scripts used to build the docs through Sphinx in the past. This commit removes that directory as it has not been used for a long time. The `doc` directory contains the Barman documentation and man pages that used to be used to build the docs up to Barman 3.11.1. That used pandoc to achieve that goal. We have been refactoring the docs of Barman, and the new version uses Sphinx to build fresh new docs. With that in mind, we have renamed the `doc` directory as `old_docs`, just so we can have a quick copy of any of the old docs pages in the soon future, if needed. In any case, that `old_docs` directory will be eventually removed from this repository. Other files were also updated in the repo so reflect these changes in `sphinx` and `doc` directories: * `linter.yml`: updated the regex to filter out `old_docs` instead of `doc` and `sphinx`. * `INSTALL.md`: updated to simply redirect the user to the docs page. * `README.rst`: temporarily updated renaming `doc` as `old_docs`. Also, removed the man pages on web, which no longer exist as a separate section. * `recovery.rst`: updated the links to runbooks, to reference the ones from `old_docs`. Once we move them to the new docs, we will need to update the links again. References: BAR-413. Signed-off-by: Israel Barth <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 3524c9d - Browse repository at this point
Copy the full SHA 3524c9dView commit details -
Now that the new docs are more stable we are renaming the `new_docs` directory as `docs`. As a consequence of that change, we had to reflect it throughout the repo: * `.gitignore`: to ignore build files from `docs` instead of `new_docs`. * `MANIFEST.in`: to include files from `docs` instead of `new_docs`. * `README.rst`: to explain about `docs` instead of `old_docs`. * `docs/README.md`: to explain about `docs` instead of `new_docs`. * `docs/build/build`: to build from `docs` instead of `new_docs`. * `docs/conf.py`: to build from `docs` instead of `new_docs`. * `docs/contributor_guide/writing_docs.rst`: to explain using the `docs` path instead of `new_docs`. * `setup.py`: to include files from `docs` instead of `new_docs`. * `tox.ini`: to build from `docs` instead of `new_docs`. References: BAR-413. Signed-off-by: Israel Barth <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for c47e564 - Browse repository at this point
Copy the full SHA c47e564View commit details
Commits on Nov 19, 2024
-
The release scripts will no longer be maintained in the public repository of Barman, but rather in an internal repository which contains all the logic for releasing a new version. References: BAR-454. Signed-off-by: Israel Barth <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 1459963 - Browse repository at this point
Copy the full SHA 1459963View commit details
Commits on Nov 21, 2024
-
Add "WAL archiving" section in the new docs
Add the "WAL archiving" section to the new docs. For now it only contains content about WAL compression and synchronous WAL streaming. References: BAR-452 Signed-off-by: Gustavo William <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for d921cc5 - Browse repository at this point
Copy the full SHA d921cc5View commit details -
Fix get_wal_conninfo and check_wal_streaming methods
This commit modifies the `check_wal_streaming` method in the Server class and the get_wal_conninfo in the ServerConfig class. Previously, when `conninfo` pointed to a standby server, Barman would incorrectly use this connection to check the replication status, resulting in the following error: `replication slot (WAL streaming): FAILED (replication slot 'barman' doesn't exist. Please execute 'barman receive-wal --create-slot pg17')` The changes: 1. get_wal_conninfo() When having wal-specific conninfos, wal_conninfo is not directly dependent of wal_streaming_conninfo anymore. If wal_streaming_conninfo is present and in the absence of wal_conninfo, wal_conninfo will fall back to wal_streaming_conninfo. If wal_streaming_conninfo is not present, wal_conninfo can still be set and used, and if it is not present, it will fall back to conninfo. 2. check_wal_streaming If wal_conninfo is different than conninfo, it means we have wal-specific configuration and it must be use to check replication status. As this config is not dependent of wal_streaming_conninfo, it can be used in the conditional. References: BAR-409 Signed-off-by: Andre <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 9090fa4 - Browse repository at this point
Copy the full SHA 9090fa4View commit details -
Fix tests broken by the changes in the code
This commit fixes all broken tests that happened because of the change in the implementation. The main change is that now when having wal_conninfo set without the presence of wal_streaming_conninfo, conninfo is overriden. References: BAR-409 Signed-off-by: Andre <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 9e806ed - Browse repository at this point
Copy the full SHA 9e806edView commit details -
Fix documentation according to the changes made to the code
This commit fixes the documentation where there are mentions to wal-specific configuration. Now wal_conninfo is not directly dependent of having the wal_streaming_conninfo configured, it can be independently set. Also, it must be set if conninfo is pointing to a standby References: BAR-409 Signed-off-by: Andre <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 576f469 - Browse repository at this point
Copy the full SHA 576f469View commit details -
This commit adds a release note for the ticket BAR-409 which fixes a bug reported in the GH issue [#1024](#1024). References: BAR-409 Signed-off-by: Andre <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for b7afe8b - Browse repository at this point
Copy the full SHA b7afe8bView commit details -
Add --keep-compression flag to barman-wal-restore and get-wal
A new `--keep-compression` option has been added to both `barman-wal-restore` and `get-wal`. This option controls whether compressed WAL files should be decompressed on the Barman server before being fetched. When specified with `get-wal`, default decompression is skipped, and the output is the WAL file content in its original state. When specified with `barman-wal-restore`, the WAL file is fetched as-is and, if compressed, decompressed on the client side. References: BAR-435 Signed-off-by: Gustavo William <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for ce6ef82 - Browse repository at this point
Copy the full SHA ce6ef82View commit details -
Fix tests broken when adding --keep-compression flag
This commit fixes some tests that were broken by the `--keep-compression` flag introduced in a preivous commmit. References: BAR-435 Signed-off-by: Gustavo William <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 9ec1837 - Browse repository at this point
Copy the full SHA 9ec1837View commit details -
Add tests to the new --keep-compression flag functionality
This commit adds tests to the new `--keep-compression` flag functionality introduced in a preivous commit. References: BAR-435 Signed-off-by: Gustavo William <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 476b2f9 - Browse repository at this point
Copy the full SHA 476b2f9View commit details -
Adds a release note the BAR-435, which introduced the new `--keep-compression` flag in `barman-wal-restore` and `get-wal`. References: BAR-435 Signed-off-by: Gustavo William <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for d274ac4 - Browse repository at this point
Copy the full SHA d274ac4View commit details -
Update documentation on the new --keep-compression option
This commit updates the documentation to describe the new `--keep-compression` option added in previous commits. It also insert notes about the deprecation of some compression options on `get-wal` and `barman-wal-restore`. References: BAR-435 Signed-off-by: Gustavo William <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for bc5688f - Browse repository at this point
Copy the full SHA bc5688fView commit details -
New images and changes in the Architecture section
Replace existing images that show the architectural design for multiple suggested architectures. Change the section for Hybrid architecture to one where users can use rsync for backups to have incremental backups and parallel copy, together with WAL streaming for aditional performance of WAL copy and possible RPO zero. Add a fallover section for WAL archiving. References: BAR-367 Signed-off-by: Martín Marqués <[email protected]> Co-authored-by: Giulio Calacoci <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 00ad28f - Browse repository at this point
Copy the full SHA 00ad28fView commit details -
This commit adds a release note for the jira ticket BAR-337. References: BAR-337 Signed-off-by: Andre <[email protected]> Co-authored-by: Israel <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 4ae8af9 - Browse repository at this point
Copy the full SHA 4ae8af9View commit details -
Configuration menu - View commit details
-
Copy full SHA for 4415320 - Browse repository at this point
Copy the full SHA 4415320View commit details -
Configuration menu - View commit details
-
Copy full SHA for ee6b538 - Browse repository at this point
Copy the full SHA ee6b538View commit details