{"id":24,"date":"2015-09-12T14:39:06","date_gmt":"2015-09-12T09:09:06","guid":{"rendered":"http:\/\/madhurendra.com\/?p=24"},"modified":"2015-10-04T18:35:06","modified_gmt":"2015-10-04T13:05:06","slug":"cloning-server-to-new-hardware","status":"publish","type":"post","link":"https:\/\/madhurendra.com\/cloning-server-to-new-hardware\/","title":{"rendered":"Cloning Server to New Hardware"},"content":{"rendered":"

You can find many ways of cloning old server to new hardware, create diskimage and move to new hardware and if you have identical hardware use `dd` or similar tool to copy disks block by block, but if you have new hardware and want to move server without downtime and with no configuration change there is nearly no solution. <\/p>\n

I used vestacp, ejabberd in my servers so i had to make changes even after moving some files, as IP changes every where but it is still far better solution than installing and configuring each package manually.<\/p>\n

We used rsync to copy whole server to new server except following files
\nbecause on new network you will never wish to propagate old network configuration,device specific configurations, installation specific configs.
\n
\n\/boot\/
\n\/lib\/modules
\n\/etc\/fstab
\n\/etc\/mtab
\n\/etc\/modules
\n\/proc
\n\/dev
\n\/etc\/network\/interfaces
\n\/root
\n<\/code><\/p>\n

Create a file with following directories and then execute `rsync` with `exclude-from`.<\/p>\n

rsync will Synchronize all your files from remote to local.<\/p>\n","protected":false},"excerpt":{"rendered":"

You can find many ways of cloning old server to new hardware, create diskimage and move to new hardware and if you have identical hardware use `dd` or similar tool to copy disks block by block, but if you have new hardware and want to move server without downtime and with no configuration change there … <\/p>\n

Continue reading<\/a><\/p>\n","protected":false},"author":4,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","enabled":false},"version":2}},"categories":[3,6],"tags":[],"class_list":["post-24","post","type-post","status-publish","format-standard","hentry","category-linux","category-server","item-wrap"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack-related-posts":[],"jetpack_shortlink":"https:\/\/wp.me\/pciGs2-o","jetpack_likes_enabled":true,"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/madhurendra.com\/wp-json\/wp\/v2\/posts\/24","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/madhurendra.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/madhurendra.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/madhurendra.com\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/madhurendra.com\/wp-json\/wp\/v2\/comments?post=24"}],"version-history":[{"count":4,"href":"https:\/\/madhurendra.com\/wp-json\/wp\/v2\/posts\/24\/revisions"}],"predecessor-version":[{"id":37,"href":"https:\/\/madhurendra.com\/wp-json\/wp\/v2\/posts\/24\/revisions\/37"}],"wp:attachment":[{"href":"https:\/\/madhurendra.com\/wp-json\/wp\/v2\/media?parent=24"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/madhurendra.com\/wp-json\/wp\/v2\/categories?post=24"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/madhurendra.com\/wp-json\/wp\/v2\/tags?post=24"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}