2004-06-09 19:09:16 +00:00
|
|
|
<?php
|
2003-08-26 18:33:21 +00:00
|
|
|
require_once("docutil.php");
|
2006-12-27 20:04:50 +00:00
|
|
|
page_head("Exporting credit statistics with db_dump");
|
2003-08-26 18:33:21 +00:00
|
|
|
echo "
|
2006-12-27 20:04:50 +00:00
|
|
|
The program db_dump generates XML files containing
|
|
|
|
your project's credit data.
|
|
|
|
It should be run every 24 hours.
|
|
|
|
Include an entry like
|
2005-11-16 07:51:39 +00:00
|
|
|
".html_text("
|
|
|
|
<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.
|
2006-12-27 20:04:50 +00:00
|
|
|
Make sure the file db_dump_spec.xml is in your project's root directory.
|
|
|
|
<p>
|
|
|
|
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 line
|
|
|
|
".html_text("
|
|
|
|
<archive_dir>../html/stats_archive</archive_dir>
|
|
|
|
")."
|
|
|
|
to your db_dump_spec.xml file.
|
2005-07-19 19:33:22 +00:00
|
|
|
";
|
2003-08-26 18:33:21 +00:00
|
|
|
page_tail();
|
|
|
|
?>
|