backupninja/etc/backup.d/example.mysql

74 lines
2.5 KiB
Plaintext
Raw 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
# of mysql without configuring any additional options.
# (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)
2004-12-09 05:37:12 +01:00
# Run mysql commands as 'user'. A valid .my.cnf must exist with a
# 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)
# The password used with dbusername. this password will NOT be passed
# 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)
2004-12-09 05:37:12 +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
#
2005-06-01 20:50:22 +02:00
# backupdir = < path/to/destination > (default = /var/backups/mysql)
2004-12-09 05:37:12 +01:00
# where to dump the backups. hotcopy backups will be in a subdirectory 'hotcopy' and
# sqldump backups will be in a subdirectory 'sqldump'
#
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.
#
2005-06-01 20:50:22 +02:00
# compress = < yes | no > (default = yes)
2004-12-09 05:37:12 +01:00
# if yes, compress the sqldump output.
#
2005-06-01 20:50:22 +02:00
# vsname = <vserver> (no default)
2005-05-24 21:27:43 +02:00
# what vserver to operate on, only used if vserver = yes in /etc/backupninja.conf
# if you do not specify a vsname the host will be operated on
2004-12-09 05:37:12 +01:00