You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: wre/sbin/wre.conf.pod
+11-31
Original file line number
Diff line number
Diff line change
@@ -15,32 +15,26 @@ The configuration file is stored as JSON.
15
15
=head2 BACKUP
16
16
17
17
"backup" : {
18
-
"compress" : null,
19
18
"enabled" : "1",
20
19
"externalScripts" : [],
21
-
"ftp" : {
20
+
"rsync" : {
22
21
"enabled" : "1",
23
22
"hostname" : "my remote backup host",
24
-
"password" : "sekrit",
25
23
"path" : "/remote_backups",
26
-
"protocol" : "sftp",
27
24
"rotations" : "1",
28
-
"usePassiveTransfers" : "1",
29
25
"user" : "username"
30
26
},
31
-
"items" : {
32
-
"domainsFolder" : "1",
33
-
"fullWre" : "0",
34
-
"mysql" : "1",
35
-
"smallWre" : "1",
36
-
"webgui" : "1"
27
+
"items" : { ##List of directories to backup, wildcards are okay
28
+
"/data/domains", ##All domain files
29
+
"/data/WebGUI", ##All of WebGUI, including etc and sbin
30
+
"/data/backup/*.sql.gz", ##All database dumps
31
+
"/data/wre/etc" ##All WRE configuration files
37
32
},
38
33
"mysql" : {
39
34
"password" : "also_sekrit",
40
35
"user" : "other_name"
41
36
},
42
37
"path" : "/backup",
43
-
"rotations" : "15"
44
38
},
45
39
46
40
=over 4
@@ -55,19 +49,17 @@ Optional value that can be set to run external script during backup.
55
49
56
50
=item B<items>
57
51
58
-
The parts of WebGUI that should be backupped (domainsFolder,fullWre,mysql,smallWre(only configfiles),webgui), set the according values to non-zero if these parts should be backupped.
52
+
A list of directories that should be backed up. They are copied to B<path> and optionally transferred remotely.
59
53
60
54
=item B<path>
61
55
62
56
The path to the directory on the WebGUI host, where the backups are stored.
63
57
64
-
=item B<rotations>
65
-
66
-
The number of rotations that should be stored on the WebGUI host.
67
-
68
58
=back
69
59
70
-
=head3 FTP OPTIONS
60
+
=head3 RSYNC OPTIONS
61
+
62
+
Rsync based backups require that private/public key-pair be setup for transfers.
71
63
72
64
=over 4
73
65
@@ -79,26 +71,14 @@ This value has to be non-zero to enable remote backups
79
71
80
72
The hostname of the host where the remote backups will be stored
81
73
82
-
=item B<password>
83
-
84
-
The password of the backup user on the remote host.
85
-
86
74
=item B<path>
87
75
88
76
The path on the remote host where the backups should be stored. Backup user must have write access.
89
77
90
-
=item B<protocol>
91
-
92
-
The protocol that is used to transfer backups to the remote host. Valid values are ftp, sftp, http, https and fish.
93
-
94
78
=item B<rotations>
95
79
96
80
The number of rotations that should be stored on the remote host.
97
81
98
-
=item B<usePassiveTransfers>
99
-
100
-
This vale can be set to zero to use non-passive ftp transfers
0 commit comments