Revision 8222
Added by Lauren Walker over 11 years ago
backup-configuration.jsp | ||
---|---|---|
39 | 39 |
|
40 | 40 |
</head> |
41 | 41 |
<body> |
42 |
<img src="<%= request.getContextPath() %>/metacat-logo-darkgray.png" |
|
43 |
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 |
|
|
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> |
|
105 | 108 |
</body> |
106 | 109 |
</html> |
Also available in: Unified diff
Matched the admin config pages to the default metacatUI theme. Changed the background image of the docs and config pages to a big cat for some metacat branding.