Make restore one by one to help https://forum.pfsense.org/index.php?topic=84693.0
Correct some logic and remove temporary files