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?
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
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.