File tree 2 files changed +9
-8
lines changed
2 files changed +9
-8
lines changed Original file line number Diff line number Diff line change 90
90
"path" : "/backup",
91
91
"mysql" : {
92
92
"user" : "backup",
93
- "password" : "xxxxxxx"
93
+ "password" : "xxxxxxx",
94
+ "enabled" : 1
94
95
},
95
96
"items" : [ ##List of directories, wildcards are okay
96
97
"/data/domains", ##All domain files
101
102
"externalScripts" : [],
102
103
"rsync" : {
103
104
"enabled" : 0,
104
- "rotations" : 3,
105
+ "rotations" : 3, ##Number of remote backups.
105
106
"hostname" : "rsync.example.com",
106
107
"user" : "rsyncuser",
107
108
"path" : "."
Original file line number Diff line number Diff line change @@ -42,7 +42,7 @@ sub backupMysql {
42
42
my $config = shift ;
43
43
44
44
# should we run?
45
- return undef unless $config -> get(" backup/items /mysql" );
45
+ return undef unless $config -> get(" backup//mysql/enabled " );
46
46
47
47
# disable wremonitor to prevent false positives
48
48
$config -> set(" wreMonitor/nginxAdministrativelyDown" , 1);
@@ -63,7 +63,7 @@ sub backupMysql {
63
63
64
64
# skip some databases
65
65
next if ($name =~ / ^demo\d / );
66
- next if ($name =~ / ^ test$ / );
66
+ next if ($name eq ' test' /);
67
67
68
68
# create dump
69
69
$mysql -> dump (
@@ -153,13 +153,13 @@ =head1 SYNOPSIS
153
153
=head1 DESCRIPTION
154
154
155
155
This wre script backups all files and databases according to the wre.conf and
156
- backup.exclude files. This script is advised to be run as a root owned cronjob.
156
+ backup.exclude files. This script is best run as a root owned cronjob.
157
157
158
158
Please see L<wre.conf.pod> for the backup options.
159
159
160
- =head2 backup.exclude
161
-
162
- A file that contains patterns of file locations and filenames that should not be backed up. This is used by the tar --exclude-from option .
160
+ The script will ignore the test database, and any database that looks like it might
161
+ come from the demo system. The demo system databases are identified by any name that
162
+ starts with "demo" and then a digit, C< ^demo\d > .
163
163
164
164
=over 4
165
165
You can’t perform that action at this time.
0 commit comments