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
fe907722
Commit
fe907722
authored
Apr 13, 2016
by
Franco Fichtner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
system: backups part 2/3
parent
bf116541
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
51 additions
and
51 deletions
+51
-51
diag_backup.php
src/www/diag_backup.php
+51
-51
No files found.
src/www/diag_backup.php
View file @
fe907722
...
...
@@ -520,59 +520,59 @@ $( document ).ready(function() {
<?php
if
(
isset
(
$input_errors
)
&&
count
(
$input_errors
)
>
0
)
print_input_errors
(
$input_errors
);
?>
<form
action=
"diag_backup.php"
method=
"post"
enctype=
"multipart/form-data"
>
<section
class=
"col-xs-12"
>
<section
class=
"__mb"
>
<div
class=
"content-box"
>
<header
class=
"content-box-head container-fluid"
>
<h3>
<?=
gettext
(
'Download'
)
?>
</h3>
</header>
<div
class=
"content-box-main"
>
<div
class=
"table-responsive"
>
<table
class=
"table table-striped"
>
<tbody>
<tr>
<td>
<?=
gettext
(
"Click this button to download the system configuration in XML format."
);
?>
<br
/><br
/>
<?=
gettext
(
"Backup area:"
);
?>
<select
name=
"backuparea"
id=
"backuparea"
>
<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
(
"Download"
);
?>
</th>
</tr>
<tr>
<td>
<?=
gettext
(
"Backup area:"
);
?>
<select
name=
"backuparea"
id=
"backuparea"
>
<option
value=
""
>
<?=
gettext
(
"ALL"
);
?>
</option>
<?php
foreach
(
$areas
as
$area
=>
$areaname
)
:
if
(
$area
!==
"rrddata"
&&
(
!
isset
(
$config
[
$area
])
||
!
is_array
(
$config
[
$area
])))
{
continue
;
};
?>
<option
value=
"
<?=
$area
;
?>
"
>
<?=
$areaname
;
?>
</option>
foreach
(
$areas
as
$area
=>
$areaname
)
:
if
(
$area
!==
"rrddata"
&&
(
!
isset
(
$config
[
$area
])
||
!
is_array
(
$config
[
$area
])))
{
continue
;
};
?>
<option
value=
"
<?=
$area
;
?>
"
>
<?=
$areaname
;
?>
</option>
<?php
endforeach
;
?>
</select>
</tr>
<tr>
<td>
<input
name=
"encrypt"
type=
"checkbox"
id=
"encryptconf"
/>
<?=
gettext
(
"Encrypt this configuration file."
);
?>
<br/>
<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!)"
);
?>
<div
class=
"hidden table-responsive"
id=
"encrypt_opts"
>
<table
class=
"table table-condensed"
>
<tr>
<td>
<?=
gettext
(
"Password:"
);
?>
</td>
<td><input
name=
"encrypt_password"
type=
"password"
value=
""
/></td>
</tr>
<tr>
<td>
<?=
gettext
(
"confirm:"
);
?>
</td>
<td><input
name=
"encrypt_passconf"
type=
"password"
value=
""
/>
</td>
</tr>
</table>
</div>
<hr/>
<input
name=
"download"
type=
"submit"
class=
"btn btn-primary __mt"
value=
"
<?=
gettext
(
"Download configuration"
);
?>
"
/>
</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
</section>
endforeach
;
?>
</select><br/>
<input
name=
"encrypt"
type=
"checkbox"
id=
"encryptconf"
/>
<?=
gettext
(
"Encrypt this configuration file."
);
?>
<br/>
<div
class=
"hidden table-responsive __mb __mt"
id=
"encrypt_opts"
>
<table
class=
"table table-condensed"
>
<tr>
<td>
<?=
gettext
(
"Password:"
);
?>
</td>
<td><input
name=
"encrypt_password"
type=
"password"
value=
""
/></td>
</tr>
<tr>
<td>
<?=
gettext
(
"confirm:"
);
?>
</td>
<td><input
name=
"encrypt_passconf"
type=
"password"
value=
""
/>
</td>
</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>
<td>
<input
name=
"download"
type=
"submit"
class=
"btn btn-primary"
value=
"
<?=
gettext
(
"Download configuration"
);
?>
"
/>
</td>
</tr>
<tr>
<td>
<?=
gettext
(
"Click this button to download the system configuration in XML format."
);
?>
</td>
</tr>
</tbody>
</table>
</div>
<section
class=
"__mb"
>
<div
class=
"content-box"
>
<header
class=
"content-box-head container-fluid"
>
...
...
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