Duplicate/Clone a Multi-site But Use Same Images & Resources?

If you have access to a Linux/Mac/Unix command line with bash, you can do the following:

  • Export your database to an SQL file.
  • Use sed command with -E to run regex search and replace operations on URLs that do not contain wp-content/uploads (or
    whichever folder contains your media)
  • Import your SQL file to the new server.

The one “gotcha” would be the regular expression required to exclude your media folder.

If you do NOT have access to bash, or do not have strong regex experience, you might review the WPBeginner article How to clone a WordPress Site in 7 Easy Steps. A friend of mine has used their method several times.