DB search & replace for network sites

UpdraftPlus Home Forums Paid support forum – UpdraftPlus backup plugin DB search & replace for network sites

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #127921
    Greg
    Participant

    I’ve just used the migrate option to restore a db backup from a live site to my local dev. It would be very helpful for it to compare the URLs of the network sites/sub-sites and offer to replace those as well. As it is now, it only does half the job (or a third, a fourth, etc, depending on how many sub-sites you have) by replacing the primary domain.

    Also, other site migration tools update references to filepaths (e.g., “/Users/me/Sites/project/” cum “/home/public_html/”) in the db. I’m curious to know if UDP does this, too.

    Cheers.

    #127981
    udadmin
    Keymaster

    Hi,

    It sounds like you are using domain mapping – is that correct?

    File path references are not replaced. No plugin should be directly storing file paths, because WordPress internally has a full system of functions available for handling paths in a relative manner, so any plugin storing a full path should either a) not be doing this or b) be coded ready for these to change. However, if you have a plugin that doesn’t do this, then you can go to the ‘Expert/Debugging’ tab in the UpdraftPlus settings page and use the search/replace tool there to replace arbitrary data.

    David

Viewing 2 posts - 1 through 2 (of 2 total)
  • The topic ‘DB search & replace for network sites’ is closed to new replies.