View Issue Details

IDProjectCategoryView StatusLast Update
0001524bareos-corefile daemonpublic2023-10-10 14:56
ReporterPetya Genius Assigned Tobruno-at-bareos  
PriorityhighSeveritymajorReproducibilityalways
Status closedResolutionwon't fix 
PlatformLinuxOSRHEL (and clones)OS Version8
Summary0001524: bpipe does not track the status of the running program
DescriptionHello!
When using the plugin bpipe, I found that this plugin does not track the execution status of the running program. If a running program in bpipe fails, the backup task itself completes successfully without checking the status of the running program.

For example:
Plugin = "bpipe:file=/var/backup:reader=bash -c 'pg_basebackup --host=testhost --username=postgres --wal-method=none --format=tar -D -':writer=bash -c 'tar xf - -C /var/backup'"

If pg_basebackup fails with an error (the host is unavailable, the host turned off during the backup, etc.), the backup task itself will succeed.
Anything can be written in bash -c, the execution status will not be tracked. If the program fails, nothing is written to stderr.

Thank you in advance!
Steps To ReproduceFile Set {
  Name = "test-fileset"
  Description = "FileSet for tests"
  Include {
    Options {
      Signature = MD5
    }
    Plugin = "bpipe:file=/var/backup:reader=bash -c 'pg_basebackup --host=testhost --username=postgres --wal-method=none --format=tar -D -':writer=bash -c 'tar xf - -C /var/backup'"
    }
}
TagsNo tags attached.

Activities

bruno-at-bareos

bruno-at-bareos

2023-10-10 14:56

manager   ~0005454

bpipe is a stupid dumb program that just pipe what it receive.
It is to the reader pipe to check what happen during the backup.

https://docs.bareos.org/master/TasksAndConcepts/Plugins.html#bpipe-plugin

Issue History

Date Modified Username Field Change
2023-03-14 16:11 Petya Genius New Issue
2023-10-10 14:56 bruno-at-bareos Assigned To => bruno-at-bareos
2023-10-10 14:56 bruno-at-bareos Status new => closed
2023-10-10 14:56 bruno-at-bareos Resolution open => won't fix
2023-10-10 14:56 bruno-at-bareos Note Added: 0005454