Skip to content

Relocating the AMP Datastore

PhonicUK edited this page Apr 23, 2022 · 17 revisions

If you need to relocate the AMP datastore, the best way to do this on both platforms is using a symbolic link.

Linux

Starting with AMP v1.9.6.2, you have the option on Linux of symlinking the entire datastore, or instead individual instances.

Before AMP v1.9.6.2, the only option was to symlink individual instances.

  1. As root or sudoer, make a new directory (call it whatever you want) for the datastore or instance(s) in the new /PATH (eg in /mnt or /srv, or wherever you want the datastore or instance(s) to be moved to) - substitute the full path for '/PATH' in the commands below:
sudo mkdir -p /PATH/amp
sudo chown amp. /PATH/amp
sudo chmod 775 /PATH/amp
  1. Switch to the amp user and stop AMP:
sudo su -l amp
ampinstmgr -o
  1. Then do either of the following:

Option 1 - If you are using AMP v1.9.6.2 or later and want to move the entire datastore

mv /home/amp/.ampdata /PATH/amp/
ln -s /PATH/amp/.ampdata /home/amp/.ampdata

Windows

Todo: Using mklink

Alternatively on Windows, you can edit the InstanceStore field in the HKEY_LOCAL_MACHINE/SOFTWARE/CubeCoders/AMP/InstanceManager registry entry. You'll also need to edit the Instances.json file (while all AMP instances are stopped!) to update the locations. If you are running an instance as a Windows Service you will have to reinstall the service.

Clone this wiki locally