Source for file backupdatabase.php
Documentation is available at backupdatabase.php
* Create a dump of the database for backup purposes
* @author Stuart Prescott
* @copyright Copyright Stuart Prescott
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
* path (bumblebee root)/inc/actions/backupdatabase.php
/** Load ancillary functions */
require_once 'inc/typeinfo.php';
require_once 'inc/bb/configreader.php';
require_once 'inc/actions/bufferedaction.php';
/** status codes for success/failure of database actions */
require_once 'inc/statuscodes.php';
* Create a dump of the database for backup purposes
* @param BumblebeeAuth $auth Authorisation object
* @param array $pdata extra state data from the call path
//echo $this->errorMessage;
* Make the sql dump and save it to memory for output later
// get a MySQL dump of the database
$dump =
join($output, "\n");
// $dump now contains the data stream.
// let's work out a nice filename and dump it out
// the data itself will be dumped later by the action driver (index.php)
* Send the sql dump to the browser immediately
* (can't be used if you have heavy HTML templates)
* Obtain the correct mysqldump command line to make the backup
return $conf->value('sqldump', 'mysqldump').
' '
.
$conf->value('sqldump', 'options')
Documentation generated on Tue, 06 Mar 2007 10:00:37 +0000 by phpDocumentor 1.3.0