MongoDB::repair Repairs and compacts this database &reftitle.description; public arrayMongoDB::repair boolpreserve_cloned_files&false; boolbackup_original_files&false; &reftitle.parameters; preserve_cloned_files If cloned files should be kept if the repair fails. backup_original_files If original files should be backed up. &reftitle.returnvalues; Returns db response. &reftitle.seealso; MongoDB core docs on repair. &reftitle.examples; <function>MongoDB::repair</function> example This example demonstrates how to repare and compact a database. foo; $response = $db->repair(); print_r($response); ?> ]]> &example.outputs.similar; 1 ) ]]>