meskyanichi/backup — Issue #285: Problem using pipe commands
Author: enriqueaf
Created: 2012-02-28 00:02:49+00:00
State: open

Backup was not dumping my db in postgresql and backup gem was not outputting any error. Finally I found that there was an error in pg_dumb, no the backup gem, but because backup is using a pipe for compressing the .sql file ( I was usign the compressor gzip ) , the exit code of the command is 0 and not 2 (using bash in linux ). So I have been wondering why not checking if the proccess_data[:stderr] is empty in lib/backup/cli/helpers.rb, the method 'raise_if_command_failed!' and not the exit code.

P.D: Sorry for my english.