Description
Implement the ability to periodically update the saved index while the search engine is running and to create backups of the current index at regular intervals.
Expected Outcomes
- Update: After every X minutes, check for changes in the in-memory index and write them to disk without interrupting active queries.
- Backup: Every Y hours, create a snapshot of the index and store it in a backup directory (e.g.,
backups/).