• Resolved vernebritton

    (@vernebritton)


    I wish to restore a backup to a devel site but keep the original domain name. Presently the restore process does a dynamic search/replace as it restores everything, resulting in a fully operation site, but using my devel server’s URL.

    How can I prohibit that?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Yani

    (@yaniiliev)

    Currently, the plugin automatically performs a search and replace on the URL during the restore process to match the URL of the environment where the backup is being restored. To maintain the original domain name on your development site, you should set up your WordPress installation under the original domain URL first, and then perform the import.

    Here’s how you can do it:

    1. Install a fresh WordPress under the original site’s URL on your development server.
    2. To access the development site as if it were the live site, you may need to edit your computer’s hosts file to point the domain to your development server’s IP address.
    3. Once WordPress is set up with the correct URL, use the plugin to import your backup. The plugin will not need to change the URLs since the installation already uses the desired domain.

    This approach allows you to work on your development site as if it were the live site without any URL mismatches.

    Thread Starter vernebritton

    (@vernebritton)

    sadly I do not have access to /etc/hosts or similar config files on my target system.

    any chance I can trick it by defining AI1WM_KEEP_DOMAIN_NAME someplace?

    or manually editing the two entries on my target devel system, in the wp_options table

    siteurl

    home

    to have the production name/URL — on the theory that the restore process will notice those and not do any changes?

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘skip domain rename upon restore’ is closed to new replies.