How to migrate a linux partition to another server over ssh
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"
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"
Category : Linux
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');