Fastest way to transfer from current to new server

Hi all,

I have a question; what is the fasted way / the best way to transfer all sites from server 1 (current) to server 2 (new) butt also the settings for the apiscp server.

Thanks in advance :slight_smile:

Use the transfer tool. As of v3.2.42, you may specify --all instead of a domain to transfer all non-suspended domains.

To replicate the system configuration, copy /root/apnscp-vars.yml, /root/apnscp-vars-runtime.yml, and /usr/local/apnscp/config/custom to the new server. Run upcp -sbf to update system settings once completed.

oeeeeee :smiley: :smiley:
Can i also set the ‘stage’ with the --all ?
is there a safe way to test the transfer with out breaking up my current system?

You may specify --all instead of a domain to transfer all non-suspended domains otherwise all regular options apply.

Transfers occur in 2 stages. First stage allows you to preview the domain on the new server. Second stage occurs 24 hours. See “Migration internals” section for specifics.

Thanks will try that next weekend :slight_smile:

is there some missing path in the 3rd black box ?

like :

/usr/local/apnscp/bin

late reply;

when transfer on the ‘old server’ to the new one (internal lan) --all stage 0

im getting mails for all the hosted websites from the new server with the following;

Reason: SOAP-ERROR: Parsing WSDL: Couldn't load from 'https://<internalip>:2083/apnscp.wsdl' : failed to load external entity "https://<internalip>:2083/apnscp.wsdl"

         0. SoapClient->__construct("https://<internalip>:2083/apnscp.wsdl", [connection_timeout:30, location:"https://<internalip>:2083/soap?authkey=1f677defa0bc16b3410438af2aa2ae9700ff2855255fa36e12e09cb7646d2066", uri:"urn:apnscp.api.soap", trace:true, stream_context:stream-context])
            [/usr/local/apnscp/lib/Util/API.php:62]
         1. Util_API::create_client("1f677defa0bc16b3410438af2aa2ae9700ff2855255fa36e12e09cb7646d2066", "<internalip>:2083")
            [/usr/local/apnscp/lib/CLI/Transfer.php:521]
         2. CLI_Transfer->_create_api_client()
            [/usr/local/apnscp/lib/CLI/Transfer.php:147]
         3. CLI_Transfer->process()
            [/usr/local/apnscp/bin/scripts/transfersite.php:233]

= new internal ip from new server

IP isn’t reachable from within your network.

curl -k https://<internalip>:2083/

This will fail. You’ll need to investigate if you can even ping the internal IP of the new server, ping -c1 <internalip>; this will also most likely fail. If it succeeds, then the panel is not set to listen on the IP or firewall restrictions are blocking :2083 access. Make sure dns.ip4-pool reports the correct internal IP on the new server.

Once addressed, you’ll need to import the SSL certificate into the trusted keystore. This may be accomplished using ssl:trust-endpoint.

added the self signd certificate to the trusted keystore :slight_smile:

last night (hours later) im getting the same mail messages again;

Reason: SOAP-ERROR: Parsing WSDL: Couldn't load from 'https://<internal ip>:2083/apnscp.wsdl' : failed to load external entity "https://<internal ip>:2083/apnscp.wsdl"

         0. SoapClient->__construct("https://<internal ip>:2083/apnscp.wsdl", [connection_timeout:30, location:"https://<internal ip>:2083/soap?authkey=5e25d31f9d3bfeb8af0999a66695ad7377396ed52bd19053735c89bc2aae30f4", uri:"urn:apnscp.api.soap", trace:true, stream_context:stream-context])
            [/usr/local/apnscp/lib/Util/API.php:62]
         1. Util_API::create_client("5e25d31f9d3bfeb8af0999a66695ad7377396ed52bd19053735c89bc2aae30f4", "<internal ip>:2083")
            [/usr/local/apnscp/lib/CLI/Transfer.php:521]
         2. CLI_Transfer->_create_api_client()
            [/usr/local/apnscp/lib/CLI/Transfer.php:147]
         3. CLI_Transfer->process()
            [/usr/local/apnscp/bin/scripts/transfersite.php:233]