-
Notifications
You must be signed in to change notification settings - Fork 0
/
.config-example
65 lines (52 loc) · 1.49 KB
/
.config-example
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
#!/usr/bin/env bash
####################################################################################################
# Configuration for the backup_mysql script.
####################################################################################################
# Backup destination path.
backup_path=''
# Path to the external MySQL options file, in case one is used.
mysql_cnf=''
# MySQL server connection parameters, if specified manually.
declare -A conn=(
[host]=''
[user]=''
[password]=''
)
# Direct list of databases to back up.
backup_dbs=(
# Example:
# 'database_alpha'
# 'database_beta'
# 'database_delta'
)
# List of databases to exclude from backup.
excluded_dbs=(
# Example:
# 'information_schema'
# 'mysql'
# 'performance_schema'
)
# Maximum number of backups per database to preserve. Use false for infinite.
nr_backups_kept=5
# Use compression (gzip) for output.
compress_backup=true
# Export user privileges (grant tables).
export_grants=false
# List of MySQL users which will be excluded from the user privileges export.
excluded_users=(
# Example:
# "'root'@'forge'"
)
# User privileges backup destination path.
grants_path=''
# Length of the random token.
rnd_token_length=8
# General date and time format used in various places.
date_format='+%d.%m.%Y %H:%M:%S'
# Output formatting ASCII codes (colors).
declare -A col=(
[def]="$(tput sgr0)"
[red]="$(tput setaf 1)"
[green]="$(tput setaf 2)"
[yellow]="$(tput setaf 3)"
)