Upgrading to a new release
- Special considerations when upgrading to v1.1.0
- Special considerations when upgrading to v1.1.1
- Special considerations when upgrading from v1.4.2 to 1.5.x (these considerations also apply when upgrading from 1.4.2 to any version through 2.0.1)
- Special considerations when upgrading to 2.1.0
Create a backup of your ArchivesSpace instance
You should make sure you have a working backup of your ArchivesSpace installation before attempting an upgrade. Follow the steps under the Backup and recovery section to do this.
Unpack the new version
It’s a good idea to unpack a fresh copy of the version of ArchivesSpace you are upgrading to. This will ensure that you are running the latest versions of all files. In the examples below, replace the lower case x with the version number updating to. For example, 1.5.2 or 1.5.3.
For example, on Mac OS X or Linux:
( The curl step is optional and simply downloads the distribution from github. You can also simply download the zip file in your browser and copy it to the directory )
On Windows, you can do the same by extracting ArchivesSpace into a new folder you create in Windows Explorer.
Shut down your ArchivesSpace instance
To ensure you get a consistent copy, you will need to shut down your running ArchivesSpace instance now.
Copy your configuration and data files
You will need to bring across the following files and directories from your original ArchivesSpace installation:
- the
data
directory (see Indexes note below) - the
config
directory (see Configuration note below) - your
lib/mysql-connector*.jar
file (if using MySQL) - any plugins and local modifications you have installed in your
plugins
directory
For example, on Mac OS X or Linux:
Or on Windows:
Note that you may want to preserve the logs file (logs/archivesspace.out
by default) from your previous installation—just in case you need to
refer to it later.
Configuration note
Sometimes a new release of ArchivesSpace will introduce new
configuration settings that weren’t present in previous releases.
Before you replace the distribution config/config.rb
with your
original version, it’s a good idea to review the distribution version
to see if there are any new configuration settings of interest.
Upgrade notes will generally draw attention to any configuration settings you need to set explicitly, but you never know when you’ll discover a new, exciting feature! Documentation might also refer to uncommenting configuration options that won’t be in your file if you keep your older version.
Indexes note
Sometimes a new release of ArchivesSpace will require a FULL reindex which means you do not want to copy over anything from your data directory to your new release. The data directory contains the indexes created by Solr. Check the release notes of the new version for any details about reindexing.
Transfer your locales data
If you’ve made modifications to you locales file ( en.yml ) with customized labels, titles, tooltips, etc., you’ll need to transfer those to your new locale file.
A good way to do this is to use a Diff tool, like Notepad++, TextMate, or just Linux diff command:
This will show you the differences in your current locales files, as well as the new additions in the new version locales files. Simply copy the values you wish to keep from your old ArchivesSpace locales to your new ArchivesSpace locales files.
Run the database migrations
With everything copied, the final step is to run the database
migrations. This will apply any schema changes and data migrations
that need to happen as a part of the upgrade. To do this, use the
setup-database
script for your platform. For example, on Mac OS X
or Linux:
Or on Windows:
If you’re using external Solr (required beginning with version 3.2.0)
Full instructions for using external Solr with ArchivesSpace
If you’ve deployed to Tomcat
The steps to deploy to Tomcat are esentially the same as in the archivesspace_tomcat
But, prior to running your setup-tomcat script, you’ll need to be sure to clean out the any libraries from the previous ASpace version from your Tomcat classpath.
That’s it!
You can now start your new ArchivesSpace version as normal.