Migration tool --> moving one site inside a multi-server setup

Discussion in 'ISPConfig 3 Priority Support' started by Stelios, Mar 18, 2021.

  1. Stelios

    Stelios Active Member HowtoForge Supporter

    Hi all,

    I need to move domain.com from web server A to web server B. Both web servers are on the same multi server setup.
    The DB will remain on the same DB server and same for emails. Only the web content has to be moved.
    Is there a way to do it somehow automatically with the migration tool?
    I need to have zero downtime and due to IP change I can't see how this will be possible?

    Is this something that the migration tool can done?
     
    Last edited: Mar 18, 2021
  2. Th0m

    Th0m ISPConfig Developer Staff Member ISPConfig Developer

    Without downtime? No.

    I think the following would be the best procedure for you:
    - Create the web on the other server and make sure the settings are the same as on the current server. (If the site uses Let's Encrypt, don't enable this yet)
    - Make sure the current DB credentials use the hostname to connect to the database, not localhost
    - Set up a rsync between the 2 web folders
    - Test the web (without SSL) by using a hosts file
    - Change the DNS record to point all traffic to the new server
    - Enable Let's Encrypt (if you used Let's Encrypt before) (make sure to wait 2-3 minutes after changing the IP)
     
  3. Stelios

    Stelios Active Member HowtoForge Supporter

    Hi Thom,
    What do you mean about creating the web on the other server. Is it possible to create the same domain that belongs to the same user on another server?
     
  4. Th0m

    Th0m ISPConfig Developer Staff Member ISPConfig Developer

    Yes.
     
  5. Stelios

    Stelios Active Member HowtoForge Supporter

    That worked great and I had zero downtime. Thanks
     
  6. Th0m

    Th0m ISPConfig Developer Staff Member ISPConfig Developer

    Glad to hear.
     

Share This Page