{"id":2847,"date":"2011-01-31T09:13:58","date_gmt":"2011-01-31T07:13:58","guid":{"rendered":"http:\/\/localhost\/helpcentre\/?p=2847"},"modified":"2024-09-30T10:07:36","modified_gmt":"2024-09-30T08:07:36","slug":"copy-images-of-servers-partitions-to-another-server","status":"publish","type":"post","link":"https:\/\/xneelo.co.za\/help-centre\/products-and-services\/copy-images-of-servers-partitions-to-another-server\/","title":{"rendered":"How to copy images of your server\u2019s partitions to another server"},"content":{"rendered":"<p><b>Warning<\/b>: Should you not have the expertise to perform these tasks, please consult with your <a title=\"system administrator\" href=\"https:\/\/xneelo.co.za\/help-centre\/products-and-services\/dedicated-hosting\/configure-my-software-domains-ip-truserv\/\" target=\"_blank\" rel=\"noopener\">system administrator<\/a>.<\/p>\n<p><b>Copy images<\/b> of your server\u2019s partitions to another server with the Linux Rescue System using sshfs and part image:<\/p>\n<div id=\"action_points\">\n<ol>\n<li style=\"list-style-type: none;\">\n<ol>\n<li>Install sshfs in the Linux Rescue System and load the fuse module to mount a foreign directory on a server using ssh.<\/li>\n<\/ol>\n<\/li>\n<\/ol>\n<div class=\"codeblock\"><code><span style=\"color: #000000;\"><br \/>\n<span style=\"color: #0000bb;\">root<\/span><span style=\"color: #007700;\">@jarvis<\/span><span style=\"color: #0000bb;\">\u00a0<\/span><span style=\"color: #007700;\">~ <\/span><span style=\"color: #ff8000;\"># apt-get update <\/span><br \/>\n<\/span><br \/>\n<\/code><\/div>\n<div class=\"codeblock\"><code><span style=\"color: #000000;\"><br \/>\n<span style=\"color: #0000bb;\">root<\/span><span style=\"color: #007700;\">@jarvis<\/span><span style=\"color: #0000bb;\">\u00a0<\/span><span style=\"color: #007700;\">~ <\/span><span style=\"color: #ff8000;\"># apt-get install sshfs <\/span><br \/>\n<\/span><br \/>\n<\/code><\/div>\n<div class=\"codeblock\"><code><span style=\"color: #000000;\"><br \/>\n<span style=\"color: #0000bb;\">root<\/span><span style=\"color: #007700;\">@jarvis<\/span><span style=\"color: #0000bb;\">\u00a0<\/span><span style=\"color: #007700;\">~ <\/span><span style=\"color: #ff8000;\"># modprobe fuse <\/span><br \/>\n<\/span><br \/>\n<\/code><\/div>\n<ol>\n<li style=\"list-style-type: none;\">\n<ol>\n<li>Mount an encrypted directory from the remote server.<\/li>\n<\/ol>\n<\/li>\n<\/ol>\n<div class=\"codeblock\"><code><span style=\"color: #000000;\"><br \/>\n<span style=\"color: #0000bb;\">root<\/span><span style=\"color: #007700;\">@jarvis<\/span><span style=\"color: #0000bb;\">\u00a0<\/span><span style=\"color: #007700;\">~ <\/span><span style=\"color: #ff8000;\"># sshfs username@remote.host:\/directory\/on\/remote\/server\/ \/mnt <\/span><br \/>\n<\/span><br \/>\n<\/code><\/div>\n<ol>\n<li style=\"list-style-type: none;\">\n<ol>\n<li>Use partimage available within the Linux Rescue System to backup partitions:<\/li>\n<\/ol>\n<\/li>\n<\/ol>\n<div class=\"codeblock\"><code><span style=\"color: #000000;\"><br \/>\n<span style=\"color: #0000bb;\">root<\/span><span style=\"color: #007700;\">@jarvis<\/span><span style=\"color: #0000bb;\">\u00a0<\/span><span style=\"color: #007700;\">~ <\/span><span style=\"color: #ff8000;\"># partimage <\/span><br \/>\n<\/span><br \/>\n<\/code><\/div>\n<ol>\n<li style=\"list-style-type: none;\">\n<ol>\n<li>Choose the partition your wish to save\/restore and insert the name of the image file and its path.<\/li>\n<\/ol>\n<\/li>\n<\/ol>\n<p>Alternatives to sshfs are NFS or SMB\/CIFS mounts. Since neither of them are very common on the average Linux server and for the encryption that sshfs offers, sshfs is usually the best choice.<\/p>\n<ol>\n<li>Use dd to copy the entire hard drive instead of copying single partitions.<\/li>\n<\/ol>\n<\/div>\n<p><b>Note:<\/b><\/p>\n<ul>\n<li>dd copies on a per block basis. If it encounters an error, the program terminates (should this be the case, you can use dd_rescue).<\/li>\n<li>Take care to use the right device names for if= and of=, to avoid deleting all data accidently.<\/li>\n<li>dd copies empty parts of the hard drive (which may be unnecessary).<\/li>\n<\/ul>\n","protected":false,"plain":"<b>Warning<\/b>: Should you not have the expertise to perform these tasks, please consult with your <a title=\"system administrator\" href=\"https:\/\/xneelo.co.za\/help-centre\/products-and-services\/dedicated-hosting\/configure-my-software-domains-ip-truserv\/\" target=\"_blank\" rel=\"noopener\">system administrator<\/a>.\r\n\r\n<b>Copy images<\/b> of your server\u2019s partitions to another server with the Linux Rescue System using sshfs and part image:\r\n<div id=\"action_points\">\r\n<ol>\r\n \t<li >\r\n<ol>\r\n \t<li>Install sshfs in the Linux Rescue System and load the fuse module to mount a foreign directory on a server using ssh.<\/li>\r\n<\/ol>\r\n<\/li>\r\n<\/ol>\r\n<div class=\"codeblock\"><code><span >\r\n<span >root<\/span><span >@jarvis<\/span><span >\u00a0<\/span><span >~ <\/span><span ># apt-get update <\/span>\r\n<\/span>\r\n<\/code><\/div>\r\n<div class=\"codeblock\"><code><span >\r\n<span >root<\/span><span >@jarvis<\/span><span >\u00a0<\/span><span >~ <\/span><span ># apt-get install sshfs <\/span>\r\n<\/span>\r\n<\/code><\/div>\r\n<div class=\"codeblock\"><code><span >\r\n<span >root<\/span><span >@jarvis<\/span><span >\u00a0<\/span><span >~ <\/span><span ># modprobe fuse <\/span>\r\n<\/span>\r\n<\/code><\/div>\r\n<ol>\r\n \t<li >\r\n<ol>\r\n \t<li>Mount an encrypted directory from the remote server.<\/li>\r\n<\/ol>\r\n<\/li>\r\n<\/ol>\r\n<div class=\"codeblock\"><code><span >\r\n<span >root<\/span><span >@jarvis<\/span><span >\u00a0<\/span><span >~ <\/span><span ># sshfs username@remote.host:\/directory\/on\/remote\/server\/ \/mnt <\/span>\r\n<\/span>\r\n<\/code><\/div>\r\n<ol>\r\n \t<li >\r\n<ol>\r\n \t<li>Use partimage available within the Linux Rescue System to backup partitions:<\/li>\r\n<\/ol>\r\n<\/li>\r\n<\/ol>\r\n<div class=\"codeblock\"><code><span >\r\n<span >root<\/span><span >@jarvis<\/span><span >\u00a0<\/span><span >~ <\/span><span ># partimage <\/span>\r\n<\/span>\r\n<\/code><\/div>\r\n<ol>\r\n \t<li >\r\n<ol>\r\n \t<li>Choose the partition your wish to save\/restore and insert the name of the image file and its path.<\/li>\r\n<\/ol>\r\n<\/li>\r\n<\/ol>\r\nAlternatives to sshfs are NFS or SMB\/CIFS mounts. Since neither of them are very common on the average Linux server and for the encryption that sshfs offers, sshfs is usually the best choice.\r\n<ol>\r\n \t<li>Use dd to copy the entire hard drive instead of copying single partitions.<\/li>\r\n<\/ol>\r\n<\/div>\r\n<b>Note:<\/b>\r\n<ul>\r\n \t<li>dd copies on a per block basis. If it encounters an error, the program terminates (should this be the case, you can use dd_rescue).<\/li>\r\n \t<li>Take care to use the right device names for if= and of=, to avoid deleting all data accidently.<\/li>\r\n \t<li>dd copies empty parts of the hard drive (which may be unnecessary).<\/li>\r\n<\/ul>"},"excerpt":{"rendered":"<p>Please consult with your system administrator should you not have the expertise to perform these tasks. <\/p>\n","protected":false},"author":7,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"lsx_disable_title":"0","_relevanssi_hide_post":"","_relevanssi_hide_content":"","_relevanssi_pin_for_all":"","_relevanssi_pin_keywords":"","_relevanssi_unpin_keywords":"","_relevanssi_related_keywords":"","_relevanssi_related_include_ids":"","_relevanssi_related_exclude_ids":"","_relevanssi_related_no_append":"","_relevanssi_related_not_related":"","_relevanssi_related_posts":"","_relevanssi_noindex_reason":"","footnotes":""},"categories":[573,207,231,205],"tags":[21053],"topics":[10407],"class_list":["post-2847","post","type-post","status-publish","format-standard","hentry","category-self-managed-servers","category-dedicated-hosting","category-faq-dedicated-hosting","category-products-and-services","tag-how-to-copy-images-of-your-servers-partitions-to-another-server","topics-self-managed-management"],"acf":[],"additional_meta":{"category_title":[{"term_id":573,"name":"Self-Managed Servers","slug":"self-managed-servers","term_group":0,"term_taxonomy_id":573,"taxonomy":"category","description":"Articles relating to Self-Managed Dedicated servers - TruServ","parent":205,"count":29,"filter":"raw","term_order":"45","cat_ID":573,"category_count":29,"category_description":"Articles relating to Self-Managed Dedicated servers - TruServ","cat_name":"Self-Managed Servers","category_nicename":"self-managed-servers","category_parent":205},{"term_id":207,"name":"Dedicated Hosting","slug":"dedicated-hosting","term_group":0,"term_taxonomy_id":207,"taxonomy":"category","description":"xneelo's Dedicated Server products and services","parent":205,"count":26,"filter":"raw","term_order":"59","cat_ID":207,"category_count":26,"category_description":"xneelo's Dedicated Server products and services","cat_name":"Dedicated Hosting","category_nicename":"dedicated-hosting","category_parent":205},{"term_id":231,"name":"FAQ about Dedicated Hosting","slug":"faq-dedicated-hosting","term_group":0,"term_taxonomy_id":231,"taxonomy":"category","description":"Frequently asked questions and answers about Dedicated Hosting ","parent":207,"count":6,"filter":"raw","term_order":"66","cat_ID":231,"category_count":6,"category_description":"Frequently asked questions and answers about Dedicated Hosting ","cat_name":"FAQ about Dedicated Hosting","category_nicename":"faq-dedicated-hosting","category_parent":207},{"term_id":205,"name":"Products and Services","slug":"products-and-services","term_group":0,"term_taxonomy_id":205,"taxonomy":"category","description":"Products and Services provided by xneelo","parent":0,"count":93,"filter":"raw","term_order":"98","cat_ID":205,"category_count":93,"category_description":"Products and Services provided by xneelo","cat_name":"Products and Services","category_nicename":"products-and-services","category_parent":0}],"tag_title":[{"term_id":21053,"name":"How to copy images of your server\u2019s partitions to another server","slug":"how-to-copy-images-of-your-servers-partitions-to-another-server","term_group":0,"term_taxonomy_id":21053,"taxonomy":"post_tag","description":"","parent":0,"count":1,"filter":"raw","term_order":"1115"}]},"featured_image_src":null,"author_info":{"display_name":"marketing","author_link":"https:\/\/xneelo.co.za\/help-centre\/author\/marketing\/","author_avatar":"https:\/\/secure.gravatar.com\/avatar\/a6ea315e112423b2b955cb020fbce2b0835956c6ad85ff0f13f1db298977eaaa?s=96&d=mm&r=g"},"_links":{"self":[{"href":"https:\/\/xneelo.co.za\/help-centre\/wp-json\/wp\/v2\/posts\/2847","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/xneelo.co.za\/help-centre\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/xneelo.co.za\/help-centre\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/xneelo.co.za\/help-centre\/wp-json\/wp\/v2\/users\/7"}],"replies":[{"embeddable":true,"href":"https:\/\/xneelo.co.za\/help-centre\/wp-json\/wp\/v2\/comments?post=2847"}],"version-history":[{"count":0,"href":"https:\/\/xneelo.co.za\/help-centre\/wp-json\/wp\/v2\/posts\/2847\/revisions"}],"wp:attachment":[{"href":"https:\/\/xneelo.co.za\/help-centre\/wp-json\/wp\/v2\/media?parent=2847"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/xneelo.co.za\/help-centre\/wp-json\/wp\/v2\/categories?post=2847"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/xneelo.co.za\/help-centre\/wp-json\/wp\/v2\/tags?post=2847"},{"taxonomy":"topics","embeddable":true,"href":"https:\/\/xneelo.co.za\/help-centre\/wp-json\/wp\/v2\/topics?post=2847"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}