How can we help you today?

How to Migrate Your Shop to Hypernode

Created by: Rens Zuurbier

Modified on: Thu, 4 Jun, 2020 at 10:31 AM

Step 2 - Copy your shop to Hypernode

Congratulations with your brand new Hypernode! In case you already have a shop, the first step is to migrate your shop to Hypernode in order to test it. There are several ways to achieve this, which are described below.

*Please note that the hypernode-importer is compatible with the following shop types:

  • Magento 1
  • Magento 2
  • Shopware 5
  • Shopware 6

Before importing your shop, make sure your vhost is of the right type. You can verify that by listing the existing vhosts with the following command: . This will generate a list of every vhost, their type and some additional information that might be interesting.

If your vhost isn't the right type, you should delete the vhost and recreate it with the correct type. You can achieve this by the following commands:

*Deleting the vhost will remove all the nginx settings of that particular vhost, so make sure you've a backup of those config-file in case you have any custom files.

hypernode-manage-vhosts --delete
hypernode-manage-vhosts --type TYPE

**You can't delete the vhost if it is the default_server. So to delete that vhost you'd have to make a new vhost and make that the default_server, you can do this by running: hypernode-manage-vhosts --default-server. Once you've a new default_server you can delete the other vhost.


Option 1 for Service Panel users: Use the Shop Importer on

Service Panel customers have access to the importer tool via
If you use the Shop importer on our Service Panel, all you have to do is to fill in the correct information on the form, click "Importeer shop" and in the background your shop will be automatically imported on your Hypernode.

If you use the Shop importer on our Service Panel, locally on the node the hypernode-importer utility is ran. This is a fully scripted migration tool that executes all the tasks that need to be done when migrating a shop. This includes:

  • Copying the database
  • Copying all the content
  • Replacing caching through memcached with Redis
  • Adjusting symlinks and paths
  • Repairing the modman directory if existent
  • Set old/current shop in Maintenance mode
  • And several other options.

Selecting the Maintenance Mode in the Shop Importer Tool

Please only select this option if you run the Importer tool for the second time, to do a last sync before going live on Hypernode.

When you select the maintenance box in the importer tool in the Service Panel, the importer wil create a maintenance flag (file: maintenance.flag) in the root of your current/old Magento shop (this function isn't Shopware compatible yet). Please be aware that your current website won't be available for your visitors. When the migration has been finished you need to modify your DNS settings:

*If your domain is hosted at Hypernode, there is a quick and easy way to switch your DNS to the Hypernode. Login into the Service Panel. Make sure your Hypernode is selected in the dropdown menu -> Instellingen -> SSL & DNS instellingen -> Find your domain in the list -> change the 'Beschikbaar' value into 'Koppel domeinnaam aan deze Hypernode'. Repeat these steps for all the domains that should be linked to your Hypernode.

*If your domain is being hosted externally, you need to change the DNS settings manually. Read this article to see which records you need to modify.

*Although the Shop importer is a very easy way to import a shop, please keep in mind that using the command line is a requirement. So if needed, find yourself an experienced developer that can assist you with these tasks.*

Option 2 for all customers: Migrate your shop via Shell using hypernode-importer

Are you a Control Panel ( Please use the Hypernode Importer tool via Shell.
The hypernode-importer tool is suitable for both Magento 1 and 2 shops as well as for Shopware 5 and 6 shops

This tool executes the following tasks:

  • Copying the database
  • Copying all the content
  • Replacing caching through memcached with Redis
  • Adjusting symlinks and paths
  • Repairing the modman directory if existent
  • And several other options.

The hypernode-importer is a very comprehensive tool as it has several alternative options and scenario's. You can import from a local database dump, use a local compressed file, copying additional databases, setting maintenance mode on the source server and skipping files that should not be copied. Please use the hypernode-importer --help flag to list all available options.

Please follow these steps:

  • Log in to your Hypernode with SSH
  • Use the hypernode-importer to automatically migrate your site to your Hypernode. All data currently on your Hypernode will be overwritten. Its usage is simple:
  • hypernode-importer --host SSH_HOSTNAME --user --path --set-default-url
  • You need to change to the domain from which you want to import your shop. The SSH_HOSTNAME should be changed to the hostname of your SSH server.
  • The --set-default-url option will change the base-url of your shop to, so don't forget to restore your original URL after testing.
  • Sit back while we do the work :-)

Option 3: Manually Migrate Your Shop to Hypernode

If anything goes wrong (authentication, error during copy), you can just rerun the importer after fixing cause of the error, or manually migrate to Hypernode if the importer went south (please file a bug report too).

Done Migrating?

Done? Now it's time to check if everything works as it should!

Tips and Tricks

  • You could also use screen or tmux to migrate your shop in a terminal session. Use man screen or man tmux to learn more about these commands.
  • The Shop importer first uses rsync to copy the file content and retrieves the database credentials required to dump the database from the copied configuration files. This implies that if you already imported another shop before, you should first remove the old content of the other shop before migrating a new one.

Starting over and need a fresh Magento or Shopware install? Take a look at the Magento or the Shopware documentation.

Rens is the author of this solution article.

Did you find it helpful? Yes No

Send feedback
Sorry we couldn't be helpful. Help us improve this article with your feedback.