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