/
autoconfigbackup.xml
107 lines (107 loc) · 3.7 KB
/
autoconfigbackup.xml
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
101
102
103
104
105
106
107
<?xml version="1.0" encoding="utf-8" ?>
<!DOCTYPE packagegui SYSTEM "./schema/packages.dtd">
<?xml-stylesheet type="text/xsl" href="./xsl/package.xsl"?>
<packagegui>
<copyright>
<![CDATA[
/*
* autoconfigbackup.xml
*
* part of pfSense (https://www.pfsense.org)
* Copyright (c) 2008-2016 Rubicon Communications, LLC (Netgate)
* All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
]]>
</copyright>
<description>Automatically backs up your pfSense configuration. All contents are encrypted before being sent to the server. Requires Gold Subscription from https://portal.pfsense.org</description>
<requirements>pfSense Portal subscription</requirements>
<name>AutoConfigBackup</name>
<title>Diagnostics: Auto Configuration Backup</title>
<include_file>/usr/local/pkg/autoconfigbackup.inc</include_file>
<aftersaveredirect>pkg_edit.php?xml=autoconfigbackup.xml&id=0</aftersaveredirect>
<menu>
<name>AutoConfigBackup</name>
<tooltiptext>Set autoconfigbackup settings such as password and port.</tooltiptext>
<section>Diagnostics</section>
<url>/autoconfigbackup.php</url>
</menu>
<tabs>
<tab>
<text>Settings</text>
<url>/pkg_edit.php?xml=autoconfigbackup.xml&id=0</url>
<active/>
</tab>
<tab>
<text>Restore</text>
<url>/autoconfigbackup.php</url>
</tab>
<tab>
<text>Backup now</text>
<url>/autoconfigbackup_backup.php</url>
</tab>
<tab>
<text>Stats</text>
<url>/autoconfigbackup_stats.php</url>
</tab>
</tabs>
<fields>
<field>
<fielddescr>Enable AutoConfigBackup</fielddescr>
<fieldname>enable_acb</fieldname>
<description>Check this to enable configuration backups to portal.pfsense.org</description>
<type>checkbox</type>
</field>
<field>
<fielddescr>Subscription Username</fielddescr>
<fieldname>username</fieldname>
<description>Enter the subscription username for portal.pfsense.org</description>
<type>input</type>
</field>
<field>
<fielddescr>Subscription Password</fielddescr>
<fieldname>password</fieldname>
<description>Enter the password for portal.pfsense.org</description>
<type>password</type>
</field>
<field>
<fielddescr>Enter Password Again</fielddescr>
<fieldname>passwordagain</fieldname>
<type>password</type>
</field>
<field>
<fielddescr>Encryption Password</fielddescr>
<description>
<![CDATA[
This password will be used to encrypt config.xml before uploading. We recommend <strong>not</strong> setting this to the same password as your portal.pfsense.org account.<br />
<span class="errmsg">Keep record of this password in a safe place - without it, your configurations will be impossible to restore.</span>
]]>
</description>
<fieldname>crypto_password</fieldname>
<type>password</type>
</field>
<field>
<fielddescr>Encryption Password Again</fielddescr>
<description>Enter the encryption password again.</description>
<fieldname>crypto_password2</fieldname>
<type>password</type>
</field>
</fields>
<custom_php_validation_command>
acb_custom_php_validation_command($_POST, $input_errors);
</custom_php_validation_command>
<custom_php_resync_config_command>
acb_custom_php_resync_config_command();
</custom_php_resync_config_command>
</packagegui>