$session->restoreRepository( $filename, $purgeflag )

The restoreRepository() function restores the repository from file, optionally purging existing repository contents in the process.

 $session->restoreRepository( "save.rps", 0 );