WordPress Duplicator

Duplicate, clone, backup, move and transfer an entire site from one location to another.

Duplicator plug-in

UPDATE wp_posts SET post_content = REPLACE(post_content,'site1.bgadv.com’,’site2.com’);
UPDATE wp_posts SET guid = REPLACE(post_content,'site1.bgadv.com','site2.com');

UPDATE `wp_posts` SET `guid` = NULL