1 |
4714
|
daigle
|
<%@ page language="java"%>
|
2 |
|
|
<%@ page
|
3 |
5031
|
daigle
|
import="edu.ucsb.nceas.metacat.util.OrganizationUtil,edu.ucsb.nceas.metacat.properties.PropertyService"%>
|
4 |
4714
|
daigle
|
<%
|
5 |
|
|
/**
|
6 |
|
|
* '$RCSfile$'
|
7 |
|
|
* Copyright: 2008 Regents of the University of California and the
|
8 |
|
|
* National Center for Ecological Analysis and Synthesis
|
9 |
|
|
* For Details: http://www.nceas.ucsb.edu/
|
10 |
|
|
*
|
11 |
|
|
* '$Author: daigle $'
|
12 |
|
|
* '$Date: 2008-11-19 15:10:40 -0800 (Wed, 19 Nov 2008) $'
|
13 |
|
|
* '$Revision: 4585 $'
|
14 |
|
|
*
|
15 |
|
|
* This program is free software; you can redistribute it and/or modify
|
16 |
|
|
* it under the terms of the GNU General Public License as published by
|
17 |
|
|
* the Free Software Foundation; either version 2 of the License, or
|
18 |
|
|
* (at your option) any later version.
|
19 |
|
|
*
|
20 |
|
|
* This program is distributed in the hope that it will be useful,
|
21 |
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
22 |
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
23 |
|
|
* GNU General Public License for more details.
|
24 |
|
|
*
|
25 |
|
|
* You should have received a copy of the GNU General Public License
|
26 |
|
|
* along with this program; if not, write to the Free Software
|
27 |
|
|
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
28 |
|
|
*/
|
29 |
|
|
%>
|
30 |
|
|
|
31 |
|
|
<html>
|
32 |
|
|
<head>
|
33 |
|
|
|
34 |
|
|
<title>Backup Directory Configuration</title>
|
35 |
|
|
<link rel="stylesheet" type="text/css"
|
36 |
|
|
href="<%= request.getContextPath() %>/admin/admin.css"></link>
|
37 |
|
|
<script language="JavaScript" type="text/JavaScript"
|
38 |
|
|
src="<%= request.getContextPath() %>/admin/admin.js"></script>
|
39 |
|
|
|
40 |
|
|
</head>
|
41 |
|
|
<body>
|
42 |
8203
|
walker
|
<img src="<%= request.getContextPath() %>/metacat-logo-darkgray.png"
|
43 |
4714
|
daigle
|
width="100px" align="right" />
|
44 |
|
|
<h2>Backup Directory Configuration</h2>
|
45 |
|
|
|
46 |
|
|
Metacat will back up configuration values in a location outside of the application installation
|
47 |
|
|
directories. In this way, you won't have to re-enter the entire configuration every time you reinstall
|
48 |
|
|
Metacat. <br><br>
|
49 |
|
|
|
50 |
|
|
<%
|
51 |
|
|
String backupDir = (String)request.getAttribute("backupBaseDir");
|
52 |
|
|
String backupDirStatus = (String)request.getAttribute("backupDirStatus");
|
53 |
|
|
|
54 |
|
|
if (backupDirStatus.equals("hiddenExistsPopulated")) {
|
55 |
|
|
%>
|
56 |
|
|
The following directory was discovered with existing backup files. If this is not the
|
57 |
|
|
correct backup directory, please correct below.<br><br>
|
58 |
|
|
|
59 |
|
|
<%= backupDir %>
|
60 |
|
|
|
61 |
|
|
<%
|
62 |
|
|
} else if (backupDirStatus.equals("unknown")) {
|
63 |
|
|
%>
|
64 |
|
|
The system could not discover an optimal backup location. Please enter a location that you have
|
65 |
|
|
permissions to below.<br><br>
|
66 |
|
|
|
67 |
|
|
<%
|
68 |
|
|
} else {
|
69 |
|
|
%>
|
70 |
|
|
The following directory was determined to be optimal for creating backup directories. If
|
71 |
|
|
this is not correct, please correct below.<br><br>
|
72 |
|
|
|
73 |
|
|
<%= backupDir %>
|
74 |
|
|
<%
|
75 |
|
|
}
|
76 |
|
|
%>
|
77 |
|
|
|
78 |
|
|
<br class="auth-header">
|
79 |
|
|
|
80 |
|
|
<%@ include file="./page-message-section.jsp"%>
|
81 |
|
|
|
82 |
|
|
<form name="backupform" method="post"
|
83 |
|
|
action="<%= request.getContextPath() %>/admin" target="_top"
|
84 |
|
|
onsubmit="return validateAndSubmitForm(this);" id="backupform">
|
85 |
|
|
|
86 |
|
|
<table class="backup">
|
87 |
|
|
<tr>
|
88 |
|
|
<td>Backup File Directory:</td>
|
89 |
|
|
</tr>
|
90 |
|
|
<tr>
|
91 |
|
|
<td><input class="backup-input" name="backup-dir" type="text"
|
92 |
|
|
maxlength="256"
|
93 |
|
|
value="<%= backupDir %>"></td>
|
94 |
|
|
</tr>
|
95 |
|
|
<tr>
|
96 |
|
|
<td class="textinput-description">[Backup directory]</td>
|
97 |
|
|
</tr>
|
98 |
|
|
</table>
|
99 |
|
|
|
100 |
|
|
|
101 |
|
|
<input type="hidden" name="configureType" value="backup"/>
|
102 |
|
|
<input type="hidden" name="processForm" value="true"/>
|
103 |
|
|
<input class=left-button type="submit" value="Save"/>
|
104 |
|
|
|
105 |
|
|
</body>
|
106 |
|
|
</html>
|