Regression from #881496: Problem migrating sites with mysql views
The sed pipe that was added hides the return code of the mysql dump command. So the check we do afterwards just confirms that the sed util worked....
This is a return of: #494376: backup succeeds even if database connexion fails
One quick fix is to test the resulting filesize.
An easy way to test this is to temporarily modify the database password in safe_shell_exec()
| Comment | File | Size | Author |
|---|---|---|---|
| provision.bug_.detect_backup_db_fail.patch | 1.21 KB | helmo |
Comments
Comment #1
danquah commentedWorks as advertised.
Did 2 x provision-backup, one on a clean 6.x-2.x-dev, and one after hacking safe_shell_exec to use the wrong password
Both executions where reported as successful even though the last backup is clearly smaller. After applying the patch I get the following
Comment #2
anarcat commentedcommitted, thanks!