Restore a backup from a command line?

After following this: I now get the following in the browser when trying to connect to the webGUI

DB Error: connect failed
Trace Back
/var/www/html/admin/libraries/db_connect.php:63 die_freepbx()
[0]: DB Error: connect failed

/var/www/html/admin/bootstrap.php:98 require_once()
[0]: /var/www/html/admin/libraries/db_connect.php

/etc/freepbx.conf:9 require_once()
[0]: /var/www/html/admin/bootstrap.php

/var/www/html/index.php:18 include_once()
[0]: /etc/freepbx.conf

I have a backup I created with the freepbx webgui but I cannot restore it without getting into the webgui. Is there a way to restore a backup from the command line?

I also got the same error, you will need to update your /etc/freepbx.conf with the new password as well.