Hi there, I need to take a snapshot of my Discourse importer instance while the import script is still running and then restore that on a different server for testing. Would there be any problems with running the Discourse backup function while the import script is still running?
Self-administered.
I’m mainly concerned about the import process being corrupted or halted in some way. But I’ve got tons of RAM and processing power that’s not being fully utilized, so stress on the system isn’t a concern.
You don’t want to take a snapshot. Just stop the script and make a Discourse backup. The restart the script. It’ll pick up where it left off.
At the stage where it’s at now it doesn’t pick up where it left off, because it’s currently running my home-grown private message import function. I did try extensively to code it so that it would resume from the last batch number like the import_topics
and import_replies
functions do, but something about the algorithm in my private message function is preventing it from doing that.
I realized that Discourse had taken an automatic backup about 36 hours into the import process and apparently nothing bad happened, so I went ahead and ran another backup and exported it to another VPS and restored it there. Seems to work fine, and the importer is still going strong.