1 ### backupninja mysql config file ###
4 backupdir = /var/backups/mysql
11 # three authentication methods:
13 # 1. setting the user, so that /home/user/.my.cnf is used.
14 # user = some-unix-user
16 # 2. specifying the mysql dbuser and dbpassword,
17 # which generates a temporary .my.cnf in /root/.my.cnf
18 # dbusername = <some-mysql-user>
19 # dbpassword = <password>
21 # 3. specify which config file to use with configfile
22 # (this option does not work with hotcopy)
23 # configfile = /etc/mysql/debian.cnf
25 # if user and dbusername are not specified, the default is to use
26 # /etc/mysql/debian.cnf for configfile.
30 # configfile = < path/to/file > (default = /etc/mysql/debian.cnf)
31 # The config file is passed to mysql with --defaults-file.
32 # On debian, this default will allow backupninja to make backups
33 # of mysql without configuring any additional options.
34 # (this option is not compatible with "user" or "dbusername").
36 # user = <user> (default = root)
37 # Run mysql commands as 'user'. A valid .my.cnf must exist with a
38 # database username and password in the user's home directory.
39 # (this option is not compatible with "configfile" or "dbusername").
41 # dbusername = <dbuser> (no default)
42 # The user must have access to the databases specified later.
43 # (this option is not compatible with "configfile" or "user").
45 # dbpassword = <dbpass> (no default)
46 # The password used with dbusername. this password will NOT be passed
47 # on the command line and is not readable using "ps aux".
49 # dbhost = <host> (default = localhost)
50 # only localhost works right now.
52 # databases = < all | db1 db2 db3 > (default = all)
53 # which databases to backup. should either be the word 'all' or a
54 # space separated list of database names.
56 # backupdir = < path/to/destination > (default = /var/backups/mysql)
57 # where to dump the backups. hotcopy backups will be in a subdirectory
58 # 'hotcopy' and sqldump backups will be in a subdirectory 'sqldump'
60 # hotcopy = < yes | no > (default = no)
61 # make a backup of the actual database binary files using mysqlhotcopy.
63 # sqldump = < yes | no > (default = no)
64 # make a backup using mysqldump. this creates text files with sql commands
65 # sufficient to recontruct the database.
67 # compress = < yes | no > (default = yes)
68 # if yes, compress the sqldump output.
70 # vsname = <vserver> (no default)
71 # what vserver to operate on (only used if vserver = yes
72 # in /etc/backupninja.conf), if you do not specify a vsname the
73 # host will be operated on
75 # NB: databases = all doesn't seem to work with hotcopy = yes
76 # when vsname is specified, I would like to know how to fix this.