I think You can restore a backup through command line right after installation is complete.
Ref: Restore a backup from command line