Migrating instances to a new machine

Guide to migrate individual instances by hand:
https://discourse.cubecoders.com/t/moving-instances-from-one-amp-server-to-another-with-existing-instances/18341

The following are a general list of steps that would be a tad safer migrating all your instances across systems, and doesn’t require the repair step.

Note, to log into the amp user you can run (su -l amp or sudo su -l amp [lowercase L, not a 1])

On the old system:

On the new system do the following:

  • install AMP
  • as amp, run ampinstmgr stopall
  • stop the ampinstmgr service (service ampinstmgr stop on debian)
  • nuke/remove .ampdata (or just rename it to be safe, you never know)
  • restore your own .ampdata folder on the new machine
  • as root, run ampinstmgr fixperms
  • start the ampinstmgr service (service ampinstmgr start on debian)
  • as amp, run ampinstmgr reactivateall
  • reboot if things look funny
3 Likes