This document discusses cleaning up inconsistencies between the Dokeos database and filesystem before upgrading to Chamilo. It describes a tool that checks for and resolves issues like paths in the database that don't exist in the filesystem or vice versa, duplicated paths, and filenames with invalid characters. The tool will backup any modified tables or files, check for bijections between the database and filesystem, resolve the listed issues, and provide logs of the results.