In order to migrate a partition/lvm to another server you can run the following command: dd if=/dev/vg/source bs=512M |gzip |ssh root@target “gzip -d | dd of=/dev/vg/dest bs=512M”
Month: March 2014
How to move a wordpress installation easily
In order to move a WordPress installation, move all web files to the new location and run the following queries in the database: UPDATE wp_options SET option_value = replace(option_value, ‘http://www.old-domain.com’, ‘http://www.new-domain.com’) WHERE option_name = ‘home’ OR option_name = ‘siteurl’; UPDATE wp_posts SET guid = replace(guid, ‘http://www.old-domain.com’, ‘http://www.new-domain.com’); UPDATE wp_posts SET post_content = replace(post_content, ‘http://www.old-domain.com’, ‘http://www.new-domain.com’);