backupDB

backupDB is a PHP script to dump a MySQL database and send the dump to a given e-mail for backup purposes.
It was inspired by the backup function of the WordPress plugin „wp-dbmanager„.

License

backupDB is published under GPL/GNUv3

System requirements

  • PHP 4.x or newer
  • MySQL 4.x or newer

Install

Download the package and unpack it. Edit „config.php“ for custom configuration.

Uninstall

Delete the contents of the package.

Usage

Once installed, run „backupDB.php“

Configuration

  • $backup[‚path‘]
    path where the backups will be temporarily stored; default is script location
  • $backup[‚log‘]
    path where logfile will be stored; default is script location
  • $backup[‚email‘]
    the email address where the backups will be send to
  • $backup[‚todo‘]
    list of databases to backup

$backup[‚todo‘] options

  • description
    Description of the database, will be used as mail subject
  • host
    database host
  • database
    database name
  • ignore-table
    comma separated list of name(s) of database table(s) to exclude from backup; leave empty if all tables should be included, no whitespaces allowed
  • user
    database user
  • password
    database password

Disclaimer

This software is provided as is without any guarantees or warranty.

Use at OWN risk!

Changelist

0.3 [2013-05-27]

  • changed: ignore-table now accepts more than one tablename

0.2 [2013-10-26]

  • added: description for backup set
  • added: option to exclude single table

0.1 [2013-05-29]

  • initial release

Download

backupDB (RAR-archive, 14kb)

Kommentar schreiben