Ok, as most of you are aware, I've got 110 tabs on my main Win10 PC standard install and I REALLY should sort this out!
So, what I'm thinking is, make a copy of it (somehow) and then edit the main so it just has the flows I actually use 24/7 to keep the house #IoT working and then remove them from the copy
Simon, are you intending on running this on the same Win10 PC?
If so, you can simply copy .node-red to .node-red2 and run it up at the same time using a slightly modified cmd line to launch it (to adjust the working folder location and the port number) and I would start the duplicate in safe mode until you have disabled anything that might interfere
Any good? need more info on running up a 2nd instance?
What i mean is - if you have any nodes that perhaps output to MQTT or to Database that you DONT want the 2nd instance to perform (as it could muck up the data first instance) you should change them or disable them so you dont have issues when you finally allow the 2nd instance to RUN.
Once both are running, the first instance may wellstill be doing all the work (initially) but you can begin to transfer logic between the two, you disable 1 part (in NR1) and enable (in NR2) that piece of logic (as quick as possible ;)). there are ways of minimising outage though (only you know your logic)
There is no real science to it - all i can really say is your approach (to minimise downtime) should be logical and staged.
To clarify, safe mode doesnt start your flow (node-red starts but flow doesnt execute) - so you are SAFE to run both instances. My point was when you DEPLOY changes to the 2nd instance - it WILL start running the flows (i.e. it drops out of safe mode)
you can start another instance WITHOUT copying anything in just by creating an empty folder & starting node-red with the correct command line parameters.
This would fire up another instance but completely EMPTY - then you could migrate elements of your first flow piece by piece.
You can run even more instances for times when you are testing and trailing stuff.
Just remember to set a different path and port number.
node-red -p 1881 -u c:/users/simon/.node-red2 --safe will do it.
the -u says - use this folder (and everything in side - i.e. your copy)
If you were to run node-red -p 1881 -u c:/nr1881 --safe it would try to use c:\nr1881 (it was just an example - i prefer to name the instance in a way that identifies what port they will be running as)
Going thru disabling all conflicting type tabs/flows - thinking I maybe should have done a global search and replace in a text editor on the flows.json file instead
[edit] OK - disabled all the 24/7 flows that I run on the main instance and deployed
Saw these two errors (which are to do with my contrib-alexa-remote2 nodes)
So I'm thinking that I'll remove that set of nodes as probably not designed to be running on the same machine in two separate instances