Not sure this is the right section for this topic...
I have a Pi with Raspbian. It runs a web server using node.js and express. I want to make another copy of the SD card, so that I can run the same thing on the second pi.
To do this, I shutdown the server with
sudo service webServer stop
Then I stop the pi with
sudo shutdown --halt now
Then I pull out the SD card, stick it into my pc and do a dd.
So far, so good.
Then when I create a replica on another SD card (also using dd), the main webServer.js file is corrupt. It has some system log messages written at the very top of the file. What's happening?
Any suggestions, tips appreciated.