backupninja/examples/example.mysql

82 lines
3.0 KiB
Plaintext
Raw Permalink Normal View History

2005-06-02 00:44:04 +02:00
### backupninja mysql config file ###
2004-12-09 05:37:12 +01:00
2005-06-01 20:50:22 +02:00
databases = all
backupdir = /var/backups/mysql
2005-06-02 00:44:04 +02:00
hotcopy = no
sqldump = yes
2005-06-01 20:50:22 +02:00
compress = yes
2005-06-02 00:44:04 +02:00
### authentication ###
2005-06-01 20:50:22 +02:00
2005-06-02 00:44:04 +02:00
# three authentication methods:
#
# 1. setting the user, so that /home/user/.my.cnf is used.
# user = some-unix-user
#
# 2. specifying the mysql dbuser and dbpassword,
# which generates a temporary .my.cnf in /root/.my.cnf
# dbusername = <some-mysql-user>
# dbpassword = <password>
#
# 3. specify which config file to use with configfile
# (this option does not work with hotcopy)
# configfile = /etc/mysql/debian.cnf
#
# if user and dbusername are not specified, the default is to use
# /etc/mysql/debian.cnf for configfile.
2005-06-01 20:50:22 +02:00
2005-06-02 00:44:04 +02:00
### all options ###
2005-06-01 20:50:22 +02:00
# configfile = < path/to/file > (default = /etc/mysql/debian.cnf)
# The config file is passed to mysql with --defaults-file.
# On debian, this default will allow backupninja to make backups
2021-01-22 17:24:14 +01:00
# of mysql without configuring any additional options.
2005-06-01 20:50:22 +02:00
# (this option is not compatible with "user" or "dbusername").
2004-12-09 05:37:12 +01:00
#
2005-06-01 20:50:22 +02:00
# user = <user> (default = root)
2021-01-22 17:24:14 +01:00
# Run mysql commands as 'user'. A valid .my.cnf must exist with a
2004-12-09 05:37:12 +01:00
# database username and password in the user's home directory.
2005-06-01 20:50:22 +02:00
# (this option is not compatible with "configfile" or "dbusername").
2004-12-09 05:37:12 +01:00
#
2005-06-01 20:50:22 +02:00
# dbusername = <dbuser> (no default)
2004-12-09 05:37:12 +01:00
# The user must have access to the databases specified later.
2005-06-01 20:50:22 +02:00
# (this option is not compatible with "configfile" or "user").
2004-12-09 05:37:12 +01:00
#
2005-06-01 20:50:22 +02:00
# dbpassword = <dbpass> (no default)
2021-01-22 17:24:14 +01:00
# The password used with dbusername. this password will NOT be passed
2005-06-01 20:50:22 +02:00
# on the command line and is not readable using "ps aux".
2004-12-09 05:37:12 +01:00
#
2005-06-01 20:50:22 +02:00
# dbhost = <host> (default = localhost)
2004-12-09 05:37:12 +01:00
# only localhost works right now.
#
2005-06-01 20:50:22 +02:00
# databases = < all | db1 db2 db3 > (default = all)
2021-01-22 17:24:14 +01:00
# which databases to backup. should either be the word 'all' or a
2005-06-01 20:50:22 +02:00
# space separated list of database names.
2004-12-09 05:37:12 +01:00
#
# nodata = < db.table1 db.table2 db.table3 > (no default)
# only dump the structure for the database tables listed here, this means
# no data contained in these tables will be dumped. This is very useful
2008-07-06 19:21:57 +02:00
# to backup databases that have tables with large amounts of cache data that
# isn't necessary to backup, but you still need the structure to exist
# on a restore. You *must* specify the table as part of a database, such
# as "drupal.cache", where the database name is "drupal" and the table that
2021-01-22 17:24:14 +01:00
# you do not want to dump the data for is called "cache".
#
2005-06-01 20:50:22 +02:00
# backupdir = < path/to/destination > (default = /var/backups/mysql)
2021-01-22 17:24:14 +01:00
# where to dump the backups. hotcopy backups will be in a subdirectory
# 'hotcopy' and sqldump backups will be in a subdirectory 'sqldump'
2004-12-09 05:37:12 +01:00
#
2005-06-02 00:44:04 +02:00
# hotcopy = < yes | no > (default = no)
2004-12-09 05:37:12 +01:00
# make a backup of the actual database binary files using mysqlhotcopy.
#
2005-06-01 20:50:22 +02:00
# sqldump = < yes | no > (default = no)
2004-12-09 05:37:12 +01:00
# make a backup using mysqldump. this creates text files with sql commands
# sufficient to recontruct the database.
#
# sqldumpoptions = <options>
# (default = --lock-tables --complete-insert --add-drop-table --quick --quote-names)
# arguments to pass to mysqldump
#
2005-06-01 20:50:22 +02:00
# compress = < yes | no > (default = yes)
2021-01-22 17:24:14 +01:00
# if yes, compress the sqldump output.