Project

General

Profile

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