{"id":78,"date":"2010-06-26T00:19:37","date_gmt":"2010-06-26T00:19:37","guid":{"rendered":"http:\/\/www.itcrumbs.com\/?p=78"},"modified":"2019-02-07T04:40:47","modified_gmt":"2019-02-07T04:40:47","slug":"copy-a-linux-website-from-server-to-server","status":"publish","type":"post","link":"https:\/\/www.itcrumbs.com\/?p=78","title":{"rendered":"Copy a Linux website from server to server"},"content":{"rendered":"<p align=\"left\">&#160;<\/p>\n<p align=\"left\"><a title=\"http:\/\/michaelquale.com\/91233\/copy-a-linux-website-from-server-to-server\/\" href=\"http:\/\/michaelquale.com\/91233\/copy-a-linux-website-from-server-to-server\/\">http:\/\/michaelquale.com\/91233\/copy-a-linux-website-from-server-to-server\/<\/a><\/p>\n<p align=\"left\">Backup:<\/p>\n<li>\n<div align=\"left\">Open a SSH terminal session. Navigate to the site root. typically<em> \/var\/www\/vhosts\/mydomain.com\/httpdocs <\/em>or <em>username\/home\/html\/<\/em> <\/div>\n<\/li>\n<li>\n<div align=\"left\">from the command line execute <em>tar -cvf site.tar.gz .\/<\/em> <\/div>\n<p align=\"left\">&#160;<\/p>\n<p align=\"left\">Restore:<\/p>\n<\/li>\n<li>\n<div align=\"left\">Open a SSH terminal session. Navigate to the site root <\/div>\n<\/li>\n<li>\n<div align=\"left\">From the command line execute: <\/div>\n<\/li>\n<p align=\"left\"><em>wget http:\/\/mydomain.com\/site.tar.gz<\/em> <\/p>\n<li>\n<div align=\"left\">When the file finishes transferring execute <em>tar -xvf site.tar.gz<\/em> <\/div>\n<\/li>\n<li>\n<div align=\"left\">The files will be uncompressed into their original locations, and will have the same permissions as the originals. <\/div>\n<\/li>\n","protected":false},"excerpt":{"rendered":"<p>&#160; http:\/\/michaelquale.com\/91233\/copy-a-linux-website-from-server-to-server\/ Backup: Open a SSH terminal session. Navigate to the site root. typically \/var\/www\/vhosts\/mydomain.com\/httpdocs or username\/home\/html\/ from the command line execute tar -cvf site.tar.gz .\/ &#160; Restore: Open a SSH terminal session. Navigate to the site root From the command line execute: wget http:\/\/mydomain.com\/site.tar.gz When the file finishes transferring execute tar -xvf site.tar.gz The [&hellip;]<\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-78","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/www.itcrumbs.com\/index.php?rest_route=\/wp\/v2\/posts\/78","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.itcrumbs.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.itcrumbs.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.itcrumbs.com\/index.php?rest_route=\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/www.itcrumbs.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=78"}],"version-history":[{"count":3,"href":"https:\/\/www.itcrumbs.com\/index.php?rest_route=\/wp\/v2\/posts\/78\/revisions"}],"predecessor-version":[{"id":821,"href":"https:\/\/www.itcrumbs.com\/index.php?rest_route=\/wp\/v2\/posts\/78\/revisions\/821"}],"wp:attachment":[{"href":"https:\/\/www.itcrumbs.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=78"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.itcrumbs.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=78"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.itcrumbs.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=78"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}