-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdb_config.php.template
102 lines (72 loc) · 4.25 KB
/
db_config.php.template
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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
<?php
$dbhost = "SET_HOST";
$user = "SET_USER";
$passwd = "SET_PASSWORD";
## this section is for backups & rsyncs
$backup_logs = "/srv/data/log";
$backup_dir = "/srv/data/sqldumps"; # directory for daily backups
$backup_count = 7; # number of backups to keep per uslims3_ database
$backup_host = "SET_HOSTNAME";
$backup_rsync = false; # force rsync after backup
$backup_user = "usadmin"; # owner of the backup files
$backup_email_reports = false;
$backup_email_address = "SET_EMAIL"; # email addresses for backups
$backup_rdiff = false;
$backup_rdiff_temp = "/srv/data/temp"; # path for temporary storage for rdiffs note : must be on the same partition as the $backups_dir
$backup_df_pct_warn = 80; # the warning threshold
$backup_df_check = []; # array of mounts to check for free space, leave empty for no checks
## rsync options
$rsync_logs = "/srv/data/log";
$rsync_host = "backup.aucsolutions.com";
$rsync_user = $backup_user; # user for rsync ssh to $rsync_host
$rsync_path = "/backup";
$rsync_no_hostname = false; # set to true to exclude the hostname from the rsync target path
$rsync_no_sudo = false; # set to true to not use sudo on the rsync_host
## this section is for configuring additional rsync directories
$rsync_add = false; # set to true to include additonal directories in the rsync
$rsync_add_delete = false; # set to true to remove files from previous rsyncs
$rsync_add_path = "/backup/sys"; # path for the rsync_add's - can not be the same as $rsync_path nor a path under $rsync_path
$rsync_path_sudo = false; # set to true if --rsync-path='sudo rsync' is needed. requires rsync host user to allow sudo
## directories to include in the rsync "add"
$rsync_add_includes = [ '/etc', '/home' ];
## directories to exclude from the rsync "add"
$rsync_add_excludes = [ '/home/us3/lims/database/utils', '/home/ehb' ];
## this section needed for httpd config domain updates
$server_admin = "SET_EMAIL"; # for domain name updates
$self_signed_certs = false; # set to true for self signed
## this section only needed for needed for update notice
$notice_remote_host = "SET_REMOTE_HOST";
$notice_remote_user = "SET_REMOTE_USER";
$notice_remote_db_user = "SET_REMOTE_DB_USER";
$notice_remote_mycnf = "SET_REMOTE_MYCNF";
## this section is for usage summaries
## usage is primarily defined in uslims_usage.php, but custom modificaitons can be placed here.
## 1. if you define the arrays $usage_approvedList or $usage_consolidation here, they will replace the defaults in uslims_usage.php
## 2. $usage_approvedList_merge and $usage_consolidation_merge, they will be merged with their respective arrays.
## $usage_approvedList_add format list (comma separated) of "string"
$usage_approvedList_add =
[
];
## $usage_consolidation_add format list (comma separated) of "string" => "string"
$usage_consolidation_add =
[
];
## git branches
$repo_branches =
[
"https://github.com/ehb54/us3_sql.git" => "SET-sql_branch"
,"https://github.com/ehb54/ultrascan3.git" => "SET-us3_branch"
,"https://github.com/ehb54/us3lims_dbutils.git" => "SET-utils_branch"
,"https://github.com/ehb54/us3lims_gridctl.git" => "SET-gridctl_branch"
,"https://github.com/ehb54/us3lims_common.git" => "SET-common_branch"
,"https://github.com/ehb54/us3lims_webinfo.git" => "SET-webinfo_branch"
,"https://github.com/ehb54/us3lims_newinst.git" => "SET-newinst_branch"
,"https://github.com/ehb54/us3lims_dbinst.git" => "SET-dbinst_branch"
,"https://github.com/SciGaP/ultrascan-airavata-bridge.git" => "SET-airavata_branch"
];
## extra databases to backup
$backup_extra_dbs_only = false; # set to true to make the backup_extra_dbs the *only* dbs backed up
## array of db names
$backup_extra_dbs =
[
];