{"id":53800,"date":"2020-03-16T13:06:40","date_gmt":"2020-03-16T17:06:40","guid":{"rendered":"https:\/\/www.inmotionhosting.com\/support\/?p=53800"},"modified":"2021-11-19T01:23:44","modified_gmt":"2021-11-19T06:23:44","slug":"aws-transfer-guide","status":"publish","type":"post","link":"https:\/\/www.inmotionhosting.com\/support\/website\/backup-and-restore\/aws-transfer-guide\/","title":{"rendered":"AWS Transfer Guide"},"content":{"rendered":"\n<p>In this article we will outline how you can transfer data from the <strong>Amazon Web Services (AWS)<\/strong> hosting platform to your InMotion Hosting hosting platform. This process requires the use of <strong>Command Line<\/strong> tools such as <a href=\"https:\/\/www.inmotionhosting.com\/support\/server\/ssh\/easier-site-management-with-ssh\/?Itemid=101&amp;catid=411&amp;id=2832&amp;option=com_content&amp;view=article\">SSH<\/a> and <a href=\"https:\/\/www.inmotionhosting.com\/support\/server\/ssh\/use-rsync-to-transfer-files\/\">RSYNC<\/a>. As such we only recommend doing this if you are comfortable with <a href=\"https:\/\/www.inmotionhosting.com\/support\/server\/ssh\/navigate-command-line\/\">using a command line interface<\/a>. Since this method requires the use of Linux commands, this process is best attempted in a Linux environment. <\/p>\n\n\n\n<p>This guide will cover:<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li><a href=\"#find\">Finding your AWS Username.<\/a><\/li><li><a href=\"https:\/\/connect\">Connecting to your AWS Instance via SSH.<\/a><\/li><li><a href=\"#dump\">Dumping your MySQL database in AWS.<\/a><\/li><li><a href=\"#transfer\">Transferring data to your new server.<\/a><\/li><\/ul>\n\n\n\n<p class=\"alert alert-info\">Transferring from AWS? Choose one of our <a href=\"https:\/\/www.inmotionhosting.com\/dedicated-servers\">Dedicated Hosting<\/a> plans for the ultimate hosting experience. <\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"find\"><strong>Finding Your AWS Username<\/strong><\/h2>\n\n\n\n<p>As you will need to know the username for the server instance you&#8217;re working on in order to connect, here is a list of common usernames and their respective <strong>Amazon Machine Images (AMI)<\/strong>:<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>Amazon Linux 2 or Amazon Linux AMI: ec2-user.<\/li><li>CentOS AMI: centos.<\/li><li>Debian AMI: admin or root.<\/li><li>Fedora AMI: ec2-user or fedora.<\/li><li>RHEL AMI: ec2-user or root.<\/li><li>SUSE AMI: ec2-user or root.<\/li><li>Ubuntu AMI: ubuntu.<\/li><\/ul>\n\n\n\n<p class=\"alert alert-danger\">Note: If ec2-user and root do not work, check with the AMI provider. <\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"connect\"><strong>Connecting to your AWS Instance via SSH<\/strong><\/h2>\n\n\n\n<ol class=\"article_list wp-block-list\"><li>Log into your IMH Server via <a href=\"https:\/\/www.inmotionhosting.com\/support\/server\/ssh\/connect-ssh\/\">SSH<\/a>.<\/li><li>Create a working directory using the <em>make directory<\/em> command <strong>mkdir<\/strong> and <em>change directory<\/em> <strong>cd<\/strong> into it.<\/li><li>Upload your .pem key pair file to the server into the working directory <a href=\"https:\/\/www.inmotionhosting.com\/support\/server\/ssh\/how-to-use-scp-for-secure-file-transfer\/\">via SCP<\/a>.<\/li><li>Establish an SSH connection to the AWS instance using this command:<br><br><pre>ssh -i \/path\/my-key-pair.pem ec2-user@ec2-198-51-100-1.compute-1.amazonaws.com<\/pre><\/li><li>You are now connected to your AWS instance via SSH and can begin running commands.&nbsp;<\/li><\/ol>\n\n\n\n<p class=\"alert alert-danger\">Note: The .pem key pair is generated when the instance is first created and the file should be saved in a secure location. If this file is lost, it is impossible to recover it and the instance will not be accessible.&nbsp;<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"dump\"><strong>Dumping your AWS Database Via SSH<\/strong><\/h2>\n\n\n\n<p>Once you\u2019ve established an SSH connection to your AWS server instance as outlined in the previous section, you can use <strong>MySQL<\/strong> commands to review the databases on the server and dump them into an .sql file that can be transferred to your new server: <\/p>\n\n\n\n<p class=\"alert alert-danger\">Note: If you do not know the database username or password, you may need to first switch into the <strong>root user<\/strong> using the following command:&nbsp;<br><code>sudo su root<\/code><\/p>\n\n\n\n<ol class=\"article_list wp-block-list\"><li>To see what databases exist on the server, run the command:<br><br><pre>mysql -e SHOW DATABASES;<\/pre><\/li><li>Once you\u2019ve determined which database you\u2019d like to dump, you can use this command:<br><br><pre>sudo mysqldump -u database_user -p database_name &gt; database_name-backup.sql&nbsp;<\/pre><br>The system will ask for a password at this point. If you&#8217;re logged in as the root user you don\u2019t need one, so just hit enter until the command prompt returns. If you are not logged in as the root user, you will need to provide the database user password in order to proceed. <\/li><li>You should now have a file on your server called \u201cdatabase_name-backup.sql\u201d. Be sure to move this file using the move <strong>mv<\/strong> command to the same directory as your site files and then close the SSH connection to the AWS instance.<\/li><\/ol>\n\n\n\n<p class=\"alert alert-warning\">Note: If you are not using MySQL as your data storage solution, you will need to check the documentation for the software you are working with as the transfer process will likely differ. <\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"transfer\">Transferring Data from AWS Instance to InMotion Hosting Server <\/h2>\n\n\n\n<ol class=\"article_list wp-block-list\"><li>Once back in the <strong>shell<\/strong> for your InMotion Hosting account, you can use <strong>SCP<\/strong> to begin the transfer of data using the following command:<br><br><pre>scp - i \/path\/key.pem -r ec2-user@ec2-198-51-100-1.compute-1.amazonaws.com:\/path\/to\/awsdata\/ ~\/home\/user\/newtransferdir<\/pre><br>When connecting using this method you will need to ensure that you are in the same folder as the necessary .pem key file otherwise the connection will not work. <\/li><li>To speed up the transfer process, you may want to create a <strong>.zip archive<\/strong> of the necessary data. You can do this via the following command:<br><br><pre>zip -r \"archive name\" \/path\/to\/files<\/pre><\/li><li>Alternatively, you can create a gzipped .tar archive using the following command:<br><br><pre>tar -cfvz myfile.tar.gz mybackupdir<\/pre><\/li><li>Once the .zip or .tar archive has been created you can use SCP to transfer it to the new server as described in Step 1. <\/li><li>Once the transfer process has finished you can close the SSH connection to the AWS instance and begin working with your data on the new server. <\/li><\/ol>\n\n\n\n<p>By following these steps, you will be able to successfully transfer site data, email data, or other software that may be stored on your AWS hosting service. Finding a new home for your data is just a few keystrokes away! <\/p>\n","protected":false},"excerpt":{"rendered":"<p>In this article we will outline how you can transfer data from the Amazon Web Services (AWS) hosting platform to your InMotion Hosting hosting platform. This process requires the use of Command Line tools such as SSH and RSYNC. As such we only recommend doing this if you are comfortable with using a command line<a class=\"moretag\" href=\"https:\/\/www.inmotionhosting.com\/support\/website\/backup-and-restore\/aws-transfer-guide\/\"> Read More ><\/a><\/p>\n","protected":false},"author":57014,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[4315],"tags":[],"class_list":["post-53800","post","type-post","status-publish","format-standard","hentry","category-backup-and-restore"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.1.1 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>AWS Transfer Guide - InMotion Hosting Support Center<\/title>\n<meta name=\"description\" content=\"In this article we will outline how to perform an AWS transfer and migrate your website and database to your InMotion Hosting platform.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.inmotionhosting.com\/support\/website\/backup-and-restore\/aws-transfer-guide\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"AWS Transfer Guide - InMotion Hosting Support Center\" \/>\n<meta property=\"og:description\" content=\"In this article we will outline how to perform an AWS transfer and migrate your website and database to your InMotion Hosting platform.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.inmotionhosting.com\/support\/website\/backup-and-restore\/aws-transfer-guide\/\" \/>\n<meta property=\"og:site_name\" content=\"InMotion Hosting Support Center\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/inmotionhosting\/\" \/>\n<meta property=\"article:published_time\" content=\"2020-03-16T17:06:40+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2021-11-19T06:23:44+00:00\" \/>\n<meta name=\"author\" content=\"InMotion Hosting Contributor\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@https:\/\/twitter.com\/InMotionHosting\" \/>\n<meta name=\"twitter:site\" content=\"@InMotionHosting\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"InMotion Hosting Contributor\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"4 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/website\/backup-and-restore\/aws-transfer-guide\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/website\/backup-and-restore\/aws-transfer-guide\/\"},\"author\":{\"name\":\"InMotion Hosting Contributor\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/person\/f9a4fc454cd1df128ee8e898d30d4644\"},\"headline\":\"AWS Transfer Guide\",\"datePublished\":\"2020-03-16T17:06:40+00:00\",\"dateModified\":\"2021-11-19T06:23:44+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/website\/backup-and-restore\/aws-transfer-guide\/\"},\"wordCount\":747,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#organization\"},\"articleSection\":[\"Backups and Restorations\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.inmotionhosting.com\/support\/website\/backup-and-restore\/aws-transfer-guide\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/website\/backup-and-restore\/aws-transfer-guide\/\",\"url\":\"https:\/\/www.inmotionhosting.com\/support\/website\/backup-and-restore\/aws-transfer-guide\/\",\"name\":\"AWS Transfer Guide - InMotion Hosting Support Center\",\"isPartOf\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#website\"},\"datePublished\":\"2020-03-16T17:06:40+00:00\",\"dateModified\":\"2021-11-19T06:23:44+00:00\",\"description\":\"In this article we will outline how to perform an AWS transfer and migrate your website and database to your InMotion Hosting platform.\",\"breadcrumb\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/website\/backup-and-restore\/aws-transfer-guide\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.inmotionhosting.com\/support\/website\/backup-and-restore\/aws-transfer-guide\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/website\/backup-and-restore\/aws-transfer-guide\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.inmotionhosting.com\/support\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"AWS Transfer Guide\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#website\",\"url\":\"https:\/\/www.inmotionhosting.com\/support\/\",\"name\":\"InMotion Hosting Support Center\",\"description\":\"Web Hosting Support &amp; Tutorials\",\"publisher\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.inmotionhosting.com\/support\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#organization\",\"name\":\"InMotion Hosting\",\"url\":\"https:\/\/www.inmotionhosting.com\/support\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2023\/02\/inmotion-hosting-logo-yoast.jpg\",\"contentUrl\":\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2023\/02\/inmotion-hosting-logo-yoast.jpg\",\"width\":696,\"height\":696,\"caption\":\"InMotion Hosting\"},\"image\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/inmotionhosting\/\",\"https:\/\/x.com\/InMotionHosting\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/person\/f9a4fc454cd1df128ee8e898d30d4644\",\"name\":\"InMotion Hosting Contributor\",\"description\":\"InMotion Hosting contributors are highly knowledgeable individuals who create relevant content on new trends and troubleshooting techniques to help you achieve your online goals!\",\"sameAs\":[\"https:\/\/www.linkedin.com\/company\/inmotion-hosting\/\",\"https:\/\/x.com\/https:\/\/twitter.com\/InMotionHosting\"],\"url\":\"https:\/\/www.inmotionhosting.com\/support\/author\/inmotion-hosting-contributor\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"AWS Transfer Guide - InMotion Hosting Support Center","description":"In this article we will outline how to perform an AWS transfer and migrate your website and database to your InMotion Hosting platform.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.inmotionhosting.com\/support\/website\/backup-and-restore\/aws-transfer-guide\/","og_locale":"en_US","og_type":"article","og_title":"AWS Transfer Guide - InMotion Hosting Support Center","og_description":"In this article we will outline how to perform an AWS transfer and migrate your website and database to your InMotion Hosting platform.","og_url":"https:\/\/www.inmotionhosting.com\/support\/website\/backup-and-restore\/aws-transfer-guide\/","og_site_name":"InMotion Hosting Support Center","article_publisher":"https:\/\/www.facebook.com\/inmotionhosting\/","article_published_time":"2020-03-16T17:06:40+00:00","article_modified_time":"2021-11-19T06:23:44+00:00","author":"InMotion Hosting Contributor","twitter_card":"summary_large_image","twitter_creator":"@https:\/\/twitter.com\/InMotionHosting","twitter_site":"@InMotionHosting","twitter_misc":{"Written by":"InMotion Hosting Contributor","Est. reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.inmotionhosting.com\/support\/website\/backup-and-restore\/aws-transfer-guide\/#article","isPartOf":{"@id":"https:\/\/www.inmotionhosting.com\/support\/website\/backup-and-restore\/aws-transfer-guide\/"},"author":{"name":"InMotion Hosting Contributor","@id":"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/person\/f9a4fc454cd1df128ee8e898d30d4644"},"headline":"AWS Transfer Guide","datePublished":"2020-03-16T17:06:40+00:00","dateModified":"2021-11-19T06:23:44+00:00","mainEntityOfPage":{"@id":"https:\/\/www.inmotionhosting.com\/support\/website\/backup-and-restore\/aws-transfer-guide\/"},"wordCount":747,"commentCount":0,"publisher":{"@id":"https:\/\/www.inmotionhosting.com\/support\/#organization"},"articleSection":["Backups and Restorations"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.inmotionhosting.com\/support\/website\/backup-and-restore\/aws-transfer-guide\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.inmotionhosting.com\/support\/website\/backup-and-restore\/aws-transfer-guide\/","url":"https:\/\/www.inmotionhosting.com\/support\/website\/backup-and-restore\/aws-transfer-guide\/","name":"AWS Transfer Guide - InMotion Hosting Support Center","isPartOf":{"@id":"https:\/\/www.inmotionhosting.com\/support\/#website"},"datePublished":"2020-03-16T17:06:40+00:00","dateModified":"2021-11-19T06:23:44+00:00","description":"In this article we will outline how to perform an AWS transfer and migrate your website and database to your InMotion Hosting platform.","breadcrumb":{"@id":"https:\/\/www.inmotionhosting.com\/support\/website\/backup-and-restore\/aws-transfer-guide\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.inmotionhosting.com\/support\/website\/backup-and-restore\/aws-transfer-guide\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.inmotionhosting.com\/support\/website\/backup-and-restore\/aws-transfer-guide\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.inmotionhosting.com\/support\/"},{"@type":"ListItem","position":2,"name":"AWS Transfer Guide"}]},{"@type":"WebSite","@id":"https:\/\/www.inmotionhosting.com\/support\/#website","url":"https:\/\/www.inmotionhosting.com\/support\/","name":"InMotion Hosting Support Center","description":"Web Hosting Support &amp; Tutorials","publisher":{"@id":"https:\/\/www.inmotionhosting.com\/support\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.inmotionhosting.com\/support\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.inmotionhosting.com\/support\/#organization","name":"InMotion Hosting","url":"https:\/\/www.inmotionhosting.com\/support\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/logo\/image\/","url":"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2023\/02\/inmotion-hosting-logo-yoast.jpg","contentUrl":"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2023\/02\/inmotion-hosting-logo-yoast.jpg","width":696,"height":696,"caption":"InMotion Hosting"},"image":{"@id":"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/inmotionhosting\/","https:\/\/x.com\/InMotionHosting"]},{"@type":"Person","@id":"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/person\/f9a4fc454cd1df128ee8e898d30d4644","name":"InMotion Hosting Contributor","description":"InMotion Hosting contributors are highly knowledgeable individuals who create relevant content on new trends and troubleshooting techniques to help you achieve your online goals!","sameAs":["https:\/\/www.linkedin.com\/company\/inmotion-hosting\/","https:\/\/x.com\/https:\/\/twitter.com\/InMotionHosting"],"url":"https:\/\/www.inmotionhosting.com\/support\/author\/inmotion-hosting-contributor\/"}]}},"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"primary_category":null,"_links":{"self":[{"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/posts\/53800","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/users\/57014"}],"replies":[{"embeddable":true,"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/comments?post=53800"}],"version-history":[{"count":66,"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/posts\/53800\/revisions"}],"predecessor-version":[{"id":91832,"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/posts\/53800\/revisions\/91832"}],"wp:attachment":[{"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/media?parent=53800"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/categories?post=53800"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/tags?post=53800"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}