fix backup restore bug. When restore time is long.