Migrate your shop to Hypernode
Congratulations with your brand new Hypernode! Let’s start moving a site onto the hypernode. There are several ways to archieve this, which are descibed below.
Table of contents
Using the shop importer on service.byte.nl
If you use the shop importer in our service panel, all you have to do is insert the correct information in the form and in the background your shop will be imported on your hypernode. This is an easy way of getting started with hypernode for developers who are not that experienced with the commandline yet.
Keep in mind that for working with hypernode using the commandline is a requirement so if needed, find yourself an experienced developer that can assist you with these tasks.
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 magento shop. This includes:
- Copying the database
- Copying all the content
- Replacing caching through
- Adjusting symlinks and paths
- Repairing the modman directory if existent
- And several other options.
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. For more features, use the
hypernode-importer --help flag to list all available options.
- Log in on your Hypernode with ssh
- Use the
hypernode-importerto 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 domain.com --path domain.com --set-default-url
- You need to change domain.com to the domain from which you want to import your Magento shop. The
SSH_HOSTNAMEshould be changed to the hostname of your SSH server.
--set-default-urloption will change the base-url of your Magento shop to
name.hypernode.io, so don’t forget to restore your original URL after testing.
- Sit back while we do the work 🙂
If anything goes wrong (authentication, error during copy), you can just rerun the importer after fixing cause of the error, or Manually migrate Magento to Hypernode if the importer went south (please file a bugreport too)
New Magento shop?
Don’t have a Magento to migrate? No problem! New Hypernodes are delivered with Magento preinstalled, so you’re good to go!
The default Magento installation is located in the
/data/web/public directory. It is configured to use a database named
YOURAPPNAME_preinstalled_magento and database credentials from the
The Magento admin and database credentials will be e-mailed to you when your Hypernode is ready.
Starting over and need a fresh Magento install? Take a look at Installing Magento on Hypernode.
Done? Now it’s time to Check if everything works as it should!
Tips and tricks
- You could also use
tmuxto migrate your shop in a terminal session. Use
man tmuxto learn more about these commands.
- The hypernode 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.