备份数据库时添加错误处理。

Signed-off-by: takwai <takwai@163.com>