3 ~ Licensed under the Apache License, Version 2.0 (the "License");
4 ~ you may not use this file except in compliance with the License.
5 ~ You may obtain a copy of the License at
7 ~ http://www.apache.org/licenses/LICENSE-2.0
9 ~ Unless required by applicable law or agreed to in writing, software
10 ~ distributed under the License is distributed on an "AS IS" BASIS,
11 ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 ~ See the License for the specific language governing permissions and
13 ~ limitations under the License.
15 <%@ taglib uri="/struts-tags" prefix="s"%>
16 <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
17 <%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
20 <s:i18n name="org.codehaus.plexus.redback.struts2.default">
22 <title><s:text name="backupRestore.page.title"/></title>
26 <h3><s:text name="backupRestore.section.backup.title"/></h3>
28 <c:if test="${!empty actionErrors}">
29 <div class="errormessage">
30 <s:iterator value="actionErrors">
31 <p><s:text name="<s:property/>" /></p>
37 You can back up the application data for this installation to prevent data loss in the case of system failures.
38 The application will be inaccessible while the backup takes place.
41 A backup will be stored on the server in a dated subdirectory of the backup directory:
43 <s:property value="backupDirectory" />
47 <s:form action="backup" method="post" >
48 <s:submit value="Create Backup" theme="simple"/>
53 <h3><s:text name="backupRestore.section.restore.title"/></h3>
55 You can reset the system to a previous state by using the
56 restore function, or use it to import data from another version of this application.
59 You can specify the directory where the backup files are located, or select from one of the recent backups in the configured
63 <s:form action="restore" method="post" validate="true">
65 <s:textfield name="restoreDirectory" label="Backup directory"
66 size="70" required="true" />
67 <s:submit value="Restore Backup" theme="simple" />
73 <h4><s:text name="backupRestore.section.recent.backup"/></h4>
75 <s:set name="previousBackups" value="previousBackups" />
77 <c:when test="${empty(previousBackups)}">
78 <div class="warningmessage">
79 No previous backups found in the default backup directory.
84 <c:forEach var="backup" items="${previousBackups}">
87 <fmt:formatDate value="${backup.date}" pattern="EEE MMM dd, yyyy 'at' HH:mm:ss" />
90 <c:if test="${backup.userDatabase}">
92 <s:url action="restore">
93 <s:param name="restoreDirectory">${backup.directory}</s:param>
94 <s:param name="userDatabase" value="true" />
97 <a href="${url}">Restore Users</a>