Updates to handle vservers
[matthijs/upstream/backupninja.git] / etc / backup.d / example.mysql
1 dbusername      = root
2 dbpassword      = test
3 dbhost          = localhost
4 databases       = all
5 backupdir       = /var/backups/mysql
6 hotcopy         = yes
7 sqldump         = yes
8 compress        = yes
9
10 #
11 # user = <user>
12 # Run mysql commands as 'user'. A valid .my.cnf must exist with a 
13 # database username and password in the user's home directory.
14 # If this option is not set, use dbusername and dbpassword instead.
15 #
16 # dbusername = <dbuser>
17 # The user must have access to the databases specified later.
18 # Use this option if not using the 'user' option.
19 #
20 # dbpassword = <dbpass>
21 # The password. this password will NOT be passed on the command line
22 # and is not readable using "ps aux". make sure that this file is not
23 # world readable. Use this to specify the password in this config file
24 # instead of ~user/.my.cnf.
25 #
26 # dbhost = <host>
27 # only localhost works right now.
28 #
29 # databases = < all | db1 db2 db3 >
30 # which databases to backup. should either be the word 'all' or a 
31 # comma seperated list of database names.
32 #
33 # backupdir = < path/to/destination >
34 # where to dump the backups. hotcopy backups will be in a subdirectory 'hotcopy' and
35 # sqldump backups will be in a subdirectory 'sqldump'
36 #
37 # hotcopy = < yes | no >
38 # make a backup of the actual database binary files using mysqlhotcopy.
39 #
40 # sqldump = < yes | no >
41 # make a backup using mysqldump. this creates text files with sql commands
42 # sufficient to recontruct the database.
43 #
44 # compress = < yes | no >
45 # if yes, compress the sqldump output. 
46 #
47 # vsname = <vserver>
48 # what vserver to operate on, only used if vserver = yes in /etc/backupninja.conf
49 # if you do not specify a vsname the host will be operated on
50