-
-
Notifications
You must be signed in to change notification settings - Fork 41
Relocating the AMP Datastore
If you need to relocate the AMP datastore, the best way to do this on both platforms is using a symbolic link.
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.
- 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
/mntor/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
- Switch to the
ampuser and stop AMP:
sudo su -l amp
ampinstmgr -o
- 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
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.