The commands barman and pg-backup-api are hardcoded multiple times as string literals. This violates the DRY (Don't Repeat Yourself) principle and makes it harder to run the software in environments without root permissions or if the software is not installed with a package manager.
Due to the strong security policy on my server (no root access allowed), I had to install the software under /opt/barman and add both programs to the PATH.
The commands
barmanandpg-backup-apiare hardcoded multiple times as string literals. This violates the DRY (Don't Repeat Yourself) principle and makes it harder to run the software in environments without root permissions or if the software is not installed with a package manager.Due to the strong security policy on my server (no root access allowed), I had to install the software under /opt/barman and add both programs to the PATH.