Migrate VPS

VPS migration is performed by the vps-migrate.pl script that moves VPS(s) to another host. This script uses:

To perform a migration, access to remote servers and logging into them automatically without entering the password each time is required from the "source" box. So, the access keys should be copied from the "source" box into the destination box. If such keys are not uploaded, the script does it for you (use the --put-ssh-key option).

Preparation:

  1. Suspend the VPS server on the "source" box.
  2. Configure the destination machine to be VPS server host:

Actions performed by the script:

For help, run:

# ./vps-migrate.pl --help

vps-migrate.pl # Moves VPS(s) to another host. 
Usage: 
vps-migrate.pl --host=<host> [--user=<name>] --vps=v<ps_name>|--all [--put-ssh-key] [--help] 

--host          # <host> - host (DNS name/IP address) to migrate VPS(s) to. 
--user          # <name> - username to be used to log into the host.
                # If username is not specified, the name of the user executing the script will be taken. 
--vps           # <vps_name> - VPS to be migrated. 
--all           # Migrate all known VPSs. 
--put-ssh-key   # Generate and upload public SSH keys to remote box. 
--help          # Print this help information.