[SOLVED] Clone whole website

Hi all,

I’m trying to copy my entire NEOS installation from one server to another. I used ./flow site:export --package-key "WG.Site" to export the content, copied the content folder in WG.Site/Recources/Private to the same location on the new web server, and followed the installation instructions.

After that, the site was successfully copied, but only with the images embedded in the pages. What I need are all media assets, including PDF files and unused images.
Now I have a lot of empty links because the PDF files are not there.

Is there a better way to clone a website? What is best practice?

Hope somebody can help.

Best regards
Julian

Hi Julian,

the best practise (probably somewhere mentioned in this forum in a few places) is to create a database dump and an archive of Data/Persistent.

With those two files, you should have everything you need.
That is also what I request from customers, when I have to work on their projects.

The site export is sadly not 100% complete depending on what you expect. At the same time, it also wouldn’t make sense to include everything in a system. Though I wonder why it wouldn’t include linked assets.

But instead of wondering, just make the copy like I said and skip all worries :slightly_smiling_face:

This is a great package to make the sync to other systems easy:

1 Like

Hi Sebastian,

Thanks for your advice. This method works, except that many of my pictures are not displayed.

Some can be used even if they are not shown in the media section. Mainly as background images.

Is there a way to like reconnect all images? It does not seem that they are broken.

Make sure you run ./flow resource:publish afterwards. Then everything should work. If not, then you have to check the logs and make sure you have the same image library in your settings and installed.

1 Like

That worked :partying_face:

Thank you <3