Title: Problems while copying site
Last modified: January 24, 2017

---

# Problems while copying site

 *  Resolved [pvdv](https://wordpress.org/support/users/pvdv/)
 * (@pvdv)
 * [9 years, 4 months ago](https://wordpress.org/support/topic/problems-while-copying-site/)
 * Hello,
 * I use a testsite. When everything is fine I copy by using a script to the real
   website. The scripts copies the website and database, replaces the URL and homedir,
   and does a database serialization.
 * This works fine except for Postie, I get this message: “Postie is almost ready.
   You must enter your email settings for it to work”. So it forgets its settings!
 * What can I do to fix this problem??
 * With regards,
    Paul van der Vlis

Viewing 5 replies - 1 through 5 (of 5 total)

 *  Plugin Author [Wayne Allen](https://wordpress.org/support/users/wayneallen-1/)
 * (@wayneallen-1)
 * [9 years, 4 months ago](https://wordpress.org/support/topic/problems-while-copying-site/#post-8692729)
 * Not knowing exactly how the copy is made it is hard to help. Postie puts all 
   its settings is the standard place. You can find yours like so:
    `SELECT * FROM
   wp_options WHERE option_name LIKE 'postie-settings'`
 *  Thread Starter [pvdv](https://wordpress.org/support/users/pvdv/)
 * (@pvdv)
 * [9 years, 4 months ago](https://wordpress.org/support/topic/problems-while-copying-site/#post-8693734)
 * On the database, I do this:
 * cp -a domaintest.sql domain.sql
    rpl ‘[https://test.domain.nl&#8217](https://test.domain.nl&#8217);‘
   [https://domain.nl&#8217](https://domain.nl&#8217); domain.sql rpl ‘test.domain.
   nl’ ‘domain.nl’ domain.sql rpl ‘/home/domaintest’ ‘/home/domain’ domain.sql php
   fix-serialization.php domain.sql mysql domain < domain.sql
 *  Plugin Author [Wayne Allen](https://wordpress.org/support/users/wayneallen-1/)
 * (@wayneallen-1)
 * [9 years, 4 months ago](https://wordpress.org/support/topic/problems-while-copying-site/#post-8693770)
 * Thanks for the info. A couple of questions:
 * Where does domaintest.sql come from? Does it even have the Postie settings in
   it?
    What does fix-serialization.php do?
 *  Thread Starter [pvdv](https://wordpress.org/support/users/pvdv/)
 * (@pvdv)
 * [9 years, 4 months ago](https://wordpress.org/support/topic/problems-while-copying-site/#post-8696511)
 * domaintest.sql is a database dump of the test-site. It has a working Postie.
   
   I use: mysqldump -QR $database > $database.sql
 * The fix-serialization script is a simple script what fixes the length attributes
   for serialized strings, I’ve copied it here: [https://vandervlis.nl/files/fix-serialization.php.txt](https://vandervlis.nl/files/fix-serialization.php.txt)
 * With regards,
    Paul van der Vlis
 *  Plugin Author [Wayne Allen](https://wordpress.org/support/users/wayneallen-1/)
 * (@wayneallen-1)
 * [9 years, 4 months ago](https://wordpress.org/support/topic/problems-while-copying-site/#post-8697717)
 * I would diff domaintest.sql and domain.sql to see if any other changes are being
   made by fix-serialization.php. That script is so old it won’t run on my PHP version.

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Problems while copying site’ is closed to new replies.

 * ![](https://ps.w.org/postie/assets/icon-256x256.png?rev=970083)
 * [Postie](https://wordpress.org/plugins/postie/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/postie/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/postie/)
 * [Active Topics](https://wordpress.org/support/plugin/postie/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/postie/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/postie/reviews/)

 * 5 replies
 * 2 participants
 * Last reply from: [Wayne Allen](https://wordpress.org/support/users/wayneallen-1/)
 * Last activity: [9 years, 4 months ago](https://wordpress.org/support/topic/problems-while-copying-site/#post-8697717)
 * Status: resolved