Project

General

Profile

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