How to Migrate 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: hypernode-manage-vhosts --list. 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 chance the type of the vhost. You can achieve this by the following command:
hypernode-manage-vhosts example.com --type TYPE
*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 importer is a very easy way to import a shop, please keep in mind that it uses the command line. So if needed, find yourself an experienced developer that can assist you with these tasks.
Migrate Your Shop via Shell Using the hypernode-importer
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
memcachedwithRedisAdjusting 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:
Use the
hypernode-importerto automatically migrate the shop to your Hypernode. All data currently on your Hypernode will be overwritten. Its usage is simple:--hostEnter the SSH hostname--userEnter the SSH user--pathEnter the full path to the rootfolder of the shop--port* Enter the SSH-portnumber, if not given is uses the default: 22--set-default-url* Sets the Base-URL tohttp://APPNAME.hypernode.io/--skip-db-import* Skips the database import--skip-file-import* Skips the files importUse
--helpto list additional options
** these are optional*
Example command:
hypernode-importer --host SSH_HOSTNAME --user SSH_USER --path /full/path/to/shop --set-default-urlSit back while we do the work :-)
Done Migrating?
Done? Now it’s time to check if everything works as it should!
Tips and Tricks
You could also use
screenortmuxto migrate your shop in a terminal session. Useman screenorman tmuxto learn more about these commands.The importer first uses
rsyncto 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? With the preinstall option can start over with just one single command