Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
O
OpnSense
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kulya
OpnSense
Commits
7271fb6d
Commit
7271fb6d
authored
Apr 13, 2016
by
Franco Fichtner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
system: configuration backup mission complete 3/3
(cherry picked from commit
b053a565
)
parent
32a6956d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
51 additions
and
54 deletions
+51
-54
diag_backup.php
src/www/diag_backup.php
+51
-54
No files found.
src/www/diag_backup.php
View file @
7271fb6d
...
...
@@ -542,9 +542,11 @@ $( document ).ready(function() {
<?php
endforeach
;
?>
</select><br/>
<input
name=
"donotbackuprrd"
type=
"checkbox"
id=
"dotnotbackuprrd"
checked=
"checked"
/>
<?=
gettext
(
"Do not backup RRD data."
);
?>
<br/>
<input
name=
"encrypt"
type=
"checkbox"
id=
"encryptconf"
/>
<?=
gettext
(
"Encrypt this configuration file."
);
?>
<br/>
<div
class=
"hidden table-responsive __m
b __m
t"
id=
"encrypt_opts"
>
<div
class=
"hidden table-responsive __mt"
id=
"encrypt_opts"
>
<table
class=
"table table-condensed"
>
<tr>
<td>
<?=
gettext
(
"Password:"
);
?>
</td>
...
...
@@ -556,8 +558,6 @@ $( document ).ready(function() {
</tr>
</table>
</div>
<input
name=
"donotbackuprrd"
type=
"checkbox"
id=
"dotnotbackuprrd"
checked=
"checked"
/>
<?=
gettext
(
"Do not backup RRD data (NOTE: RRD Data can consume 4+ megabytes of config.xml space!)"
);
?>
</td>
</tr>
<tr>
...
...
@@ -573,59 +573,56 @@ $( document ).ready(function() {
</tbody>
</table>
</div>
<section
class=
"__mb"
>
<div
class=
"content-box"
>
<header
class=
"content-box-head container-fluid"
>
<h3>
<?=
gettext
(
"Restore"
);
?>
</h3>
</header>
<div
class=
"content-box-main "
>
<div
class=
"table-responsive"
>
<table
class=
"table table-striped"
>
<tbody>
<tr>
<td>
<?=
gettext
(
"Open a configuration XML file and click the button below to restore the configuration."
);
?>
<br
/><br
/>
<?=
gettext
(
"Restore area:"
);
?>
<select
name=
"restorearea"
id=
"restorearea"
>
<option
value=
""
>
<?=
gettext
(
"ALL"
);
?>
</option>
<div
class=
"content-box tab-content table-responsive __mb"
>
<table
class=
"table table-striped "
>
<tbody>
<tr>
<th
colspan=
"2"
valign=
"top"
class=
"listtopic"
>
<?=
gettext
(
"Restore"
);
?>
</th>
</tr>
<tr>
<td>
<?=
gettext
(
"Restore area:"
);
?>
<select
name=
"restorearea"
id=
"restorearea"
>
<option
value=
""
>
<?=
gettext
(
"ALL"
);
?>
</option>
<?php
foreach
(
$areas
as
$area
=>
$areaname
)
:?>
<
option
value
=
"<?=
$area
;?>"
><?=
$areaname
;
?>
</option>
foreach
(
$areas
as
$area
=>
$areaname
)
:?>
<
option
value
=
"<?=
$area
;?>"
><?=
$areaname
;
?>
</option>
<?php
endforeach
;
?>
</select
>
</td
>
</tr
>
<tr
>
<td
>
<input
name=
"conffile"
type=
"file"
id=
"conffile"
/
>
<input
name=
"decrypt"
type=
"checkbox"
id=
"decryptconf"
/
>
<
?=
gettext
(
"Configuration file is encrypted."
);
?
>
<
div
class=
"hidden table-responsive"
id=
"decrypt_opts"
>
<table
class=
"table table-condensed"
>
<tr>
<td>
<?=
gettext
(
"Password
:"
);
?>
</td>
<td><input
name=
"decrypt_password"
type=
"password"
value=
""
/>
</td>
</tr>
<tr
>
<td>
<?=
gettext
(
"confirm:"
);
?>
</td
>
<td><input
name=
"decrypt_passconf"
type=
"password"
value=
""
/>
</td>
</tr>
</table
>
</div
>
<hr
/>
<input
name=
"restore"
type=
"submit"
class=
"btn btn-primary"
id=
"restore"
value=
"
<?=
gettext
(
"Restore configuration"
);
?>
"
/
>
<hr/
>
<p><strong><span
class=
"text-danger"
>
<?=
gettext
(
"Note:"
);
?>
<?=
gettext
(
"The firewall will reboot after restoring the configuration."
);
?>
</span></strong></p
>
</
td>
</tr
>
<
/tbody
>
</t
able
>
</
div
>
</
div
>
</
div
>
</
section
>
endforeach
;
?>
</select><br/
>
<input
name=
"conffile"
type=
"file"
id=
"conffile"
/><br/
>
<input
name=
"decrypt"
type=
"checkbox"
id=
"decryptconf"
/
>
<?=
gettext
(
"Configuration file is encrypted."
);
?
>
<div
class=
"hidden table-responsive __mt"
id=
"decrypt_opts"
>
<table
class=
"table table-condensed"
>
<tr
>
<
td>
<?=
gettext
(
"Password:"
);
?>
</td
>
<
td><input
name=
"decrypt_password"
type=
"password"
value=
""
/></td
>
</tr
>
<tr>
<td>
<?=
gettext
(
"confirm
:"
);
?>
</td>
<td><input
name=
"decrypt_passconf"
type=
"password"
value=
""
/>
</td>
</tr>
</table
>
</div
>
</td>
</tr>
<tr
>
<td
>
<input
name=
"restore"
type=
"submit"
class=
"btn btn-primary"
id=
"restore"
value=
"
<?=
gettext
(
"Restore configuration"
);
?>
"
/>
</td
>
</tr
>
<tr
>
<
td>
<?=
gettext
(
"Open a configuration XML file and click the button below to restore the configuration."
);
?>
<br/
>
<
span
class=
"text-danger"
>
<?=
gettext
(
"The firewall will reboot after restoring the configuration."
);
?>
</span
>
</t
d
>
</
tr
>
</
tbody
>
</
table
>
</
div
>
<div
class=
"content-box tab-content table-responsive"
>
<table
class=
"table table-striped "
>
<thead
style=
"display: none;"
>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment