Skip to content

Commit f2a525e

Browse files
committedDec 13, 2011
Update wre.conf POD file for new rsync based backups.
1 parent 2295edc commit f2a525e

File tree

1 file changed

+11
-31
lines changed

1 file changed

+11
-31
lines changed
 

‎wre/sbin/wre.conf.pod

+11-31
Original file line numberDiff line numberDiff line change
@@ -15,32 +15,26 @@ The configuration file is stored as JSON.
1515
=head2 BACKUP
1616

1717
"backup" : {
18-
"compress" : null,
1918
"enabled" : "1",
2019
"externalScripts" : [],
21-
"ftp" : {
20+
"rsync" : {
2221
"enabled" : "1",
2322
"hostname" : "my remote backup host",
24-
"password" : "sekrit",
2523
"path" : "/remote_backups",
26-
"protocol" : "sftp",
2724
"rotations" : "1",
28-
"usePassiveTransfers" : "1",
2925
"user" : "username"
3026
},
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
3732
},
3833
"mysql" : {
3934
"password" : "also_sekrit",
4035
"user" : "other_name"
4136
},
4237
"path" : "/backup",
43-
"rotations" : "15"
4438
},
4539

4640
=over 4
@@ -55,19 +49,17 @@ Optional value that can be set to run external script during backup.
5549

5650
=item B<items>
5751

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.
5953

6054
=item B<path>
6155

6256
The path to the directory on the WebGUI host, where the backups are stored.
6357

64-
=item B<rotations>
65-
66-
The number of rotations that should be stored on the WebGUI host.
67-
6858
=back
6959

70-
=head3 FTP OPTIONS
60+
=head3 RSYNC OPTIONS
61+
62+
Rsync based backups require that private/public key-pair be setup for transfers.
7163

7264
=over 4
7365

@@ -79,26 +71,14 @@ This value has to be non-zero to enable remote backups
7971

8072
The hostname of the host where the remote backups will be stored
8173

82-
=item B<password>
83-
84-
The password of the backup user on the remote host.
85-
8674
=item B<path>
8775

8876
The path on the remote host where the backups should be stored. Backup user must have write access.
8977

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-
9478
=item B<rotations>
9579

9680
The number of rotations that should be stored on the remote host.
9781

98-
=item B<usePassiveTransfers>
99-
100-
This vale can be set to zero to use non-passive ftp transfers
101-
10282
=item B<user>
10383

10484
The user on the remote host
@@ -107,6 +87,6 @@ The user on the remote host
10787

10888
=head1 AUTHOR
10989

110-
Copyright 2001-2009 Plain Black Corporation.
90+
Copyright 2001-2011 Plain Black Corporation.
11191

11292
=cut

0 commit comments

Comments
 (0)
Please sign in to comment.