• Resolved raultbc

    (@raultbc)


    I am moving a WP installation from one hosting company to another. I want to issue a backup of the database, upload it into the new database using phpmyadmin and hit the ground running.

    Is there a way to disable all commenting and posting so I can do the backup?

Viewing 5 replies - 1 through 5 (of 5 total)
  • Not that I know of because the old blog will persist until the DNS repoints unless you actually remove it. I usually see people post a message saying things are changing and to look out for a message (which you write on the new blog) to say all is good.

    Thread Starter raultbc

    (@raultbc)

    So there is no way to prevent someone from posting a comment during the move?

    If you take down the site at the same time you take the backup, yes otherwise no. The database can’t know what’s going on neither can the code.
    Unless you tell people it’s moving they’ll not know so they’ll post.

    If you can access your blog’s database through an admin tool such as phpMyAdmin, you can use the following query before your move to *lock* down commenting on all current posts this way:

    UPDATE wp_posts SET comment_status = 'closed', ping_status = 'closed';

    Then once the move is completed, change 'closed' to 'open' with a similar query. Note that the prefix on the posts table (wp_posts) may be different.

    Thread Starter raultbc

    (@raultbc)

    Running the query will work – I was hoping there was something in the Dashboard … maybe a future enhancement.

    Thanks podz and Kafkaesqui for your help.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Disable Blog during domain move’ is closed to new replies.