Skip to content
David Anderson edited this page Oct 2, 2025 · 5 revisions

Exporting credit statistics with db_dump

The program db_dump generates XML files containing your project's credit data. This data is used by 3rd-party sites to generate charts and graphs.

  • In your project's html/ directory, create a directory stats. Make sure Apache can access it; you may need to protect it 755.

  • In your project's html/user directory, create a symbolic link:

ln -s ../stats .
  • Include an entry like
    <tasks>
        <task>
            <cmd>db_dump -d 2 -dump_spec ../db_dump_spec.xml</cmd>
            <output>db_dump.out</output>
            <period>24 hours</period>
        </task>
    </tasks>

in your config.xml file. db_dump should be run every 24 hours.

  • Make sure the file db_dump_spec.xml is in your project's root directory. Copy from boinc/sched/ if not.

The XML files are written to html/stats and the old stats/ directory is renamed to stats_DATE. This clutters up your html/ directory; if you don't like this, create a directory html/stats_archive/ and add the following line to your db_dump_spec.xml file:

<archive_dir>../html/stats_archive</archive_dir>
Clone this wiki locally