
It's not obvious, but the if statements can change the PIPESTATUS meaning we're not matching what we think we're matching. Save the pipestatus of the backup commands so we exit the backup script with the right code. Change-Id: I83c7db45d3622067eb05107e26fbdc7a8aeecf63