<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://ab.edge-technologies.com/docs/index.php?action=history&amp;feed=atom&amp;title=Enportal%2F5.6%2Fadmin%2FenPortal_installation%2Fbackup_and_recovery</id>
	<title>Enportal/5.6/admin/enPortal installation/backup and recovery - Revision history</title>
	<link rel="self" type="application/atom+xml" href="http://ab.edge-technologies.com/docs/index.php?action=history&amp;feed=atom&amp;title=Enportal%2F5.6%2Fadmin%2FenPortal_installation%2Fbackup_and_recovery"/>
	<link rel="alternate" type="text/html" href="http://ab.edge-technologies.com/docs/index.php?title=Enportal/5.6/admin/enPortal_installation/backup_and_recovery&amp;action=history"/>
	<updated>2026-04-15T01:32:20Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.38.4</generator>
	<entry>
		<id>http://ab.edge-technologies.com/docs/index.php?title=Enportal/5.6/admin/enPortal_installation/backup_and_recovery&amp;diff=8468&amp;oldid=prev</id>
		<title>imported&gt;Jason.nicholls: 1 revision</title>
		<link rel="alternate" type="text/html" href="http://ab.edge-technologies.com/docs/index.php?title=Enportal/5.6/admin/enPortal_installation/backup_and_recovery&amp;diff=8468&amp;oldid=prev"/>
		<updated>2015-04-30T11:18:23Z</updated>

		<summary type="html">&lt;p&gt;1 revision&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 11:18, 30 April 2015&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-notice&quot; lang=&quot;en&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(No difference)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>imported&gt;Jason.nicholls</name></author>
	</entry>
	<entry>
		<id>http://ab.edge-technologies.com/docs/index.php?title=Enportal/5.6/admin/enPortal_installation/backup_and_recovery&amp;diff=8467&amp;oldid=prev</id>
		<title>imported&gt;Jason.nicholls: /* Loading Backups (archives) */</title>
		<link rel="alternate" type="text/html" href="http://ab.edge-technologies.com/docs/index.php?title=Enportal/5.6/admin/enPortal_installation/backup_and_recovery&amp;diff=8467&amp;oldid=prev"/>
		<updated>2015-04-07T09:14:46Z</updated>

		<summary type="html">&lt;p&gt;&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;Loading Backups (archives)&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;[[Category:enPortal 5.6]]&lt;br /&gt;
{{DISPLAYTITLE:enPortal Backup &amp;amp; Recovery}}&lt;br /&gt;
==Overview==&lt;br /&gt;
A typical enPortal deployment will consist of:&lt;br /&gt;
&lt;br /&gt;
# application configuration: users, domains, provisioning information, etc.&lt;br /&gt;
# custom assets on the file system such as configuration files.&lt;br /&gt;
# external supporting pieces required for operation but not strictly part of enPortal.&lt;br /&gt;
&lt;br /&gt;
enPortal provides a configurable export system which will automatically capture all system configuration (1) and much of the custom assets (2). If custom assets are not captured then the export configuration can be modified to include them which would be considered a deployment best practice. Exporting the external supporting pieces (3) is beyond the scope of the product itself but should be considered from an overall perspective.&lt;br /&gt;
&lt;br /&gt;
The reasons for performing backups are:&lt;br /&gt;
&lt;br /&gt;
* adhere to backup maintenance good practices.&lt;br /&gt;
* provide a mechanism to migrate configuration from one environment to another (for example from development, to staging, to production).&lt;br /&gt;
* use a backup when upgrading enPortal itself.&lt;br /&gt;
* provide a way for Edge to further investigate support issues - a backup archive may be requested.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Creating Backups ==&lt;br /&gt;
&lt;br /&gt;
To create backups, hover your mouse over the &amp;#039;&amp;#039;&amp;#039;Advanced&amp;#039;&amp;#039;&amp;#039; tab and select the &amp;#039;&amp;#039;Backup&amp;#039;&amp;#039; option.&lt;br /&gt;
&lt;br /&gt;
[[File:enportal-5.5-backup.png|frame|Advanced -&amp;gt; Backup]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The Backup page allows the user to create new backups, and download or delete existing backups on the server file system.&lt;br /&gt;
&lt;br /&gt;
Select the &amp;#039;&amp;#039;Create&amp;#039;&amp;#039; button to create a new backup. Multiple backup options will be presented.&lt;br /&gt;
&lt;br /&gt;
=== Backup Options ===&lt;br /&gt;
{|class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Backup Type&lt;br /&gt;
! Description&lt;br /&gt;
|-&lt;br /&gt;
| Backup All&lt;br /&gt;
| This will backup everything and is typically the form of backup required even if only using AppBoard features. [&amp;#039;&amp;#039;&amp;#039;recommended&amp;#039;&amp;#039;&amp;#039;]&lt;br /&gt;
|-&lt;br /&gt;
| Backup AppBoard&lt;br /&gt;
| This is a special purpose backup that will only export AppBoard content - see below for further information.&lt;br /&gt;
|-&lt;br /&gt;
| Backup Portal&lt;br /&gt;
| This is a special purpose backup that will export most server configuration and all enPortal configuration.&lt;br /&gt;
|}&lt;br /&gt;
*&amp;#039;&amp;#039;Backup AppBoard&amp;#039;&amp;#039; Option&lt;br /&gt;
The &amp;#039;&amp;#039;Backup AppBoard&amp;#039;&amp;#039; option backs up only AppBoard components, specifically:    Stacks, Data Collections, and Data Sources. Everything else including server configuration, users, domains, roles, stack assignment, managed variables, and all enPortal specific custom export properties are &amp;#039;&amp;#039;&amp;#039;not backed up&amp;#039;&amp;#039;&amp;#039;.&lt;br /&gt;
&lt;br /&gt;
*&amp;#039;&amp;#039;Backup All&amp;#039;&amp;#039; Option&lt;br /&gt;
Use the &amp;#039;&amp;#039;Backup All&amp;#039;&amp;#039; option for full system backups.&lt;br /&gt;
&lt;br /&gt;
*&amp;#039;&amp;#039;Backup Portal&amp;#039;&amp;#039; Option&lt;br /&gt;
Use the &amp;#039;&amp;#039;Backup Portal&amp;#039;&amp;#039; option to export all enPortal configuration in addition to most of the server configuration.&lt;br /&gt;
&lt;br /&gt;
=== Customizing the Export ===&lt;br /&gt;
Recommended best practice is to ensure that backups include all required files for a functioning system. In many cases this is handled automatically by placing custom files within the supplied &amp;#039;&amp;#039;custom&amp;#039;&amp;#039; directories. Some files fall outside this pattern however and to handle these it&amp;#039;s necessary to customize the export file set by creating a &amp;lt;tt&amp;gt;custom.properties&amp;lt;/tt&amp;gt; file and placing it into the &amp;lt;tt&amp;gt;[INSTALL_HOME]/server/webapps/enportal/WEB-INF/config/&amp;lt;/tt&amp;gt; directory.&lt;br /&gt;
&lt;br /&gt;
This file can be used for various overrides so it may exist for other purposes already. The key part is to define an &amp;lt;tt&amp;gt;export.custom.other&amp;lt;/tt&amp;gt; property with a list of rules defining the files to export. This is a semi-colon (&amp;lt;tt&amp;gt;;&amp;lt;/tt&amp;gt;) separated list, with the backslash character (&amp;lt;tt&amp;gt;\&amp;lt;/tt&amp;gt;) used to split the list over multiple lines to improve readability. For example:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# below is a list of additional files to export on a full backup&lt;br /&gt;
export.custom.other=${webapp.webinf}/lib/mysql-connector-java-5.1.34.jar;\&lt;br /&gt;
                    ${webapp.xmlroot}/appboard/config/iconregistry/custom_icons.csv;\&lt;br /&gt;
                    ${webapp.home}/visualizer/assets/images/custom_banner_logo.png;\&lt;br /&gt;
                    ${webapp.webinf}/test_dir;\&lt;br /&gt;
                    ${webapp.webinf}/image_dir,,,.*\.png&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In this example a DB driver, a icon registry file, a custom graphic, and the &amp;lt;tt&amp;gt;test_dir&amp;lt;/tt&amp;gt; are specific paths to be exported. The last example specifies a path and file expression so that only files ending with &amp;lt;tt&amp;gt;.png&amp;lt;/tt&amp;gt; are included.&lt;br /&gt;
&lt;br /&gt;
The format for each export rule is noted below. The initial &amp;lt;tt&amp;gt;Path&amp;lt;/tt&amp;gt; is not a regular expression and must match exactly a single file or directory. &amp;lt;tt&amp;gt;PathExpression&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;FileExpression&amp;lt;/tt&amp;gt; are &amp;#039;&amp;#039;regular expressions&amp;#039;&amp;#039;, not wildcards. The use of the &amp;lt;tt&amp;gt;exclude&amp;lt;/tt&amp;gt; keyword is optional and implies the preceding expression should be excluded.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;Path&amp;gt;,&amp;lt;PathExpression&amp;gt;,exclude,&amp;lt;FileExpression&amp;gt;,exclude,&amp;lt;FileExpression&amp;gt;,exclude,...&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
After making changes to the set of excludes perform a backup and verify the resulting (.jar) archive contains the desired set of files. The archive can be uncompressed using unzip, depending on the unzip tool it may need to be renamed to end with &amp;lt;tt&amp;gt;.zip&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
=== Unattended Backups ===&lt;br /&gt;
The backup mechanism is only accessible via the web interface. &lt;br /&gt;
To perform an unattended backup, create a custom script to authenticate and call the following URL to generate the backup (example below calls the &amp;#039;&amp;#039;Backup All&amp;#039;&amp;#039; option):&lt;br /&gt;
&lt;br /&gt;
&amp;lt;tt&amp;gt;/enportal/servlet/pd/vdir/home/role/portalAdministration/Menu/Admin/Advanced/Backup?requestType=execute&amp;amp;Submit=true&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Loading Backups (archives) ==&lt;br /&gt;
Loading backup archives is completed on the command line and the enPortal server must be shutdown beforehand. &lt;br /&gt;
Before proceeding with loading a backup, please be aware that this process is disruptive and will replace the existing configuration. For example, loading a &amp;#039;&amp;#039;Backup All&amp;#039;&amp;#039; archive will replace all existing enPortal and AppBoard content and configuration settings.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{Warning|Loading archives created from a newer version of enPortal onto an older version of enPortal is &amp;#039;&amp;#039;&amp;#039;not supported&amp;#039;&amp;#039;&amp;#039;. While it may be &amp;#039;&amp;#039;possible&amp;#039;&amp;#039; to load the archive it may lead to unknown configuration issues.}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
To load an archive:&lt;br /&gt;
&lt;br /&gt;
# shutdown enPortal&lt;br /&gt;
# in a terminal, change into the &amp;lt;tt&amp;gt;[INSTALL_HOME]/server/bin&amp;lt;/tt&amp;gt; directory&lt;br /&gt;
# run: &amp;lt;tt&amp;gt;portal &amp;#039;&amp;#039;&amp;lt;Load_Type&amp;gt;&amp;#039;&amp;#039; -jar &amp;#039;&amp;#039;&amp;lt;backup_archive.jar&amp;gt;&amp;#039;&amp;#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
# (Linux / UNIX) re-run &amp;lt;tt&amp;gt;post_install.sh&amp;lt;/tt&amp;gt;&amp;lt;br&amp;gt;This is required to ensure correct system configuration and file ownership, permissions, and any included scripts are set executable as jar archives do not store this information.&lt;br /&gt;
# start enPortal&lt;br /&gt;
&lt;br /&gt;
The applicable Load Types are defined below:&lt;br /&gt;
&lt;br /&gt;
{|class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
!Load Type&lt;br /&gt;
!Description&lt;br /&gt;
|-&lt;br /&gt;
| Restore&lt;br /&gt;
| This command will load an archive effectively creating a &amp;quot;mirror&amp;quot; of the original install. If this is on a different host then the license key and runtime configuration may need to be updated.  Alternatively use the &amp;#039;&amp;#039;Apply&amp;#039;&amp;#039; command.&lt;br /&gt;
|-&lt;br /&gt;
| Apply&lt;br /&gt;
| This command is intended when moving an archive from one host to another, but it will not preserve the license file, SSL configuration, or other runtime configuration (&amp;lt;tt&amp;gt;setenv-custom.sh&amp;lt;/tt&amp;gt;). The host where the &amp;#039;&amp;#039;Apply&amp;#039;&amp;#039; is run will need to have its own configuration already set up otherwise enPortal will not start (i.e. no license). &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
{{Note|Regardless of a &amp;#039;&amp;#039;Restore&amp;#039;&amp;#039; or &amp;#039;&amp;#039;Apply&amp;#039;&amp;#039;, on Linux / UNIX platforms it is recommended to re-run &amp;lt;tt&amp;gt;post_install.sh&amp;lt;/tt&amp;gt;. See [[enportal/5.6/admin/unix_installation|Linux / UNIX Installation - Restoring an Archive]] for more information.}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In addition, a special procedure is required to load an AppBoard only backup onto an existing server without losing other configuration, i.e. this is not necessary for a clean AppBoard installation. Instead of a &amp;#039;&amp;#039;Restore&amp;#039;&amp;#039; or &amp;#039;&amp;#039;Apply&amp;#039;&amp;#039; command, the &amp;#039;&amp;#039;FilesImport&amp;#039;&amp;#039; command should be used. This will overlay the files onto the file system without resetting the configuration database. All AppBoard content will be replaced however. The following steps are also required to ensure data sources are loaded correctly:&lt;br /&gt;
&lt;br /&gt;
# Shutdown AppBoard.&lt;br /&gt;
# In a terminal change into the &amp;lt;tt&amp;gt;[INSTALL_HOME]\server\bin\&amp;lt;/tt&amp;gt; directory.&lt;br /&gt;
# Enter the command: &amp;lt;tt&amp;gt;portal FilesImport -jar &amp;lt;appboard-only-archive.jar&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
# Change into the &amp;lt;tt&amp;gt;[INSTALL_HOME]\server\webapps\enportal\WEB-INF\xmlroot\appboard\&amp;lt;/tt&amp;gt; directory.&lt;br /&gt;
# Rename &amp;lt;tt&amp;gt;load-restore.txt.disabled&amp;lt;/tt&amp;gt; to &amp;lt;tt&amp;gt;load-restore.txt&amp;lt;/tt&amp;gt;.&lt;br /&gt;
# Start AppBoard.&lt;br /&gt;
&lt;br /&gt;
== Troubleshooting ==&lt;br /&gt;
{|class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
!Issue&lt;br /&gt;
!Possible Causes&lt;br /&gt;
|-&lt;br /&gt;
| When restoring an archive, you receive the following message in the console:&lt;br /&gt;
 &amp;lt;tt&amp;gt;System must be shutdown prior to resetting the database&amp;lt;/tt&amp;gt;.&lt;br /&gt;
|&lt;br /&gt;
* enPortal is still running.  Make sure enPortal is shut down prior to running the restore command.&lt;br /&gt;
* The system was improperly shut down and there is a lock file in the H2 folder (/server/webapps/enportal/WEB-INF/h2/).Delete the lock file (persist.lock.db) and run the restore command again.&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>imported&gt;Jason.nicholls</name></author>
	</entry>
</feed>