1
|
<%@ page language="java"%>
|
2
|
<%@ page
|
3
|
import="edu.ucsb.nceas.metacat.util.OrganizationUtil,edu.ucsb.nceas.metacat.properties.PropertyService"%>
|
4
|
<%
|
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
|
<%@ include file="./head-section.jsp"%>
|
36
|
</head>
|
37
|
<body>
|
38
|
<img src="<%= request.getContextPath() %>/metacat-logo-white.png"
|
39
|
width="100px" align="right" />
|
40
|
|
41
|
<div class="document">
|
42
|
<h2>Backup Directory Configuration</h2>
|
43
|
|
44
|
Metacat will back up configuration values in a location outside of the application installation
|
45
|
directories. In this way, you won't have to re-enter the entire configuration every time you reinstall
|
46
|
Metacat. <br><br>
|
47
|
|
48
|
<%
|
49
|
String backupDir = (String)request.getAttribute("backupBaseDir");
|
50
|
String backupDirStatus = (String)request.getAttribute("backupDirStatus");
|
51
|
|
52
|
if (backupDirStatus.equals("hiddenExistsPopulated")) {
|
53
|
%>
|
54
|
The following directory was discovered with existing backup files. If this is not the
|
55
|
correct backup directory, please correct below.<br><br>
|
56
|
|
57
|
<%= backupDir %>
|
58
|
|
59
|
<%
|
60
|
} else if (backupDirStatus.equals("unknown")) {
|
61
|
%>
|
62
|
The system could not discover an optimal backup location. Please enter a location that you have
|
63
|
permissions to below.<br><br>
|
64
|
|
65
|
<%
|
66
|
} else {
|
67
|
%>
|
68
|
The following directory was determined to be optimal for creating backup directories. If
|
69
|
this is not correct, please correct below.<br><br>
|
70
|
|
71
|
<%= backupDir %>
|
72
|
<%
|
73
|
}
|
74
|
%>
|
75
|
|
76
|
<br class="auth-header">
|
77
|
|
78
|
<%@ include file="./page-message-section.jsp"%>
|
79
|
|
80
|
<form name="backupform" method="post"
|
81
|
action="<%= request.getContextPath() %>/admin" target="_top"
|
82
|
onsubmit="return validateAndSubmitForm(this);" id="backupform">
|
83
|
|
84
|
<table class="backup">
|
85
|
<tr>
|
86
|
<td>Backup File Directory:</td>
|
87
|
</tr>
|
88
|
<tr>
|
89
|
<td><input class="backup-input" name="backup-dir" type="text"
|
90
|
maxlength="256"
|
91
|
value="<%= backupDir %>"></td>
|
92
|
</tr>
|
93
|
<tr>
|
94
|
<td class="textinput-description">[Backup directory]</td>
|
95
|
</tr>
|
96
|
</table>
|
97
|
|
98
|
|
99
|
<input type="hidden" name="configureType" value="backup"/>
|
100
|
<input type="hidden" name="processForm" value="true"/>
|
101
|
<input class=button type="submit" value="Save"/>
|
102
|
</form>
|
103
|
</div>
|
104
|
</body>
|
105
|
</html>
|