# Geeklog Dbman plugin

## Configuration

### Main Settings

Variable | Default Value | Description
--- | --- | ---
Allow restoration | No | This option decides whether to allow restoration in Dbman plugin. SHOULD BE SET TO "NO" TO PREVENT ACCIDENTAL DAMAGE TO DATABASE and use other tools such as phpMyAdmin instead. PLEASE SET THIS OPTION TO "YES" ONLY IF YOU KNOW WHAT YOU DO. YOU HAVE BEEN WARNED!
Chunk size | 100 | The number of records to select data from database when the dbman plugin backs up a table. If "MySQL client run out of memory." error occurs, decrease this value.
Compression level | 8 | This option sets the compression level. Valid values are 1 (largest size) to 9 (smallest size).
Tables Not to be backed up | $_DB_table_prefix + 'gus_' | This option sets table names which the Dbman plugin shouldn't back up the data of (table structures will always be back uped). You can use regular expressions (preg_match() style) to specify table name(s).
Back up regularly | No | This option decides whether to back up database with Geeklog's built-in psedo-cron functionality.
Maximum number of back up files | 0 | This option sets the maximum number of backup files to be kept on the server. When set to 0, NO backup file will be deleted.

### Default Settings for backup

Variable | Default Value | Description
--- | --- | ---
Add "DROP TABLE IF EXISTS" | No | This option sets the default value as to whether to add "DROP TABLE IF EXISTS ..." statement to the backup file.
Compress data | No | This option sets the default value as to whether to compress back up files. If set to "Yes", the dbman plugin tries to compress the data with Zlib. In this case, the names of backup files will be '*.sql.gz'.
Download as a file | No | This option sets the default value as to whether to download backup files.