Skip to content

Relocating the AMP Datastore

Greelan edited this page Jan 30, 2020 · 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

Currently the method below does not appear to work correctly. Do not follow this method until the issue has been investigated and the instructions updated

  1. As root or sudoer, make a new directory for the datastore in the new PATH (eg in /mnt or /srv, or wherever you want the datastore to be moved to) - substitute the full path for 'PATH' in the commands below:
sudo mkdir -p PATH/amp
sudo chown amp.amp PATH/amp
sudo chmod 755 PATH/amp
  1. Switch to the amp user, stop AMP, move the datastore to the new location, and create a symlink in its place. Then restart AMP (if you want to start all instances, not just boot-time instances, then use ampinstmgr -a):
sudo su -l amp
ampinstmgr -o
mv /home/amp/.ampdata PATH/amp/
ln -s PATH/amp/.ampdata /home/amp/
ampinstmgr -b
exit

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.

Clone this wiki locally