Save nodes password for backups

Hi all!
When I restore a flow from backup I have to reinsert all the password of nodes (MQTT, email, etc.).
Is there a way to save them?

I think it depends how you restore from backup.
Your flows are saved in flows.json and the passwords etc in flows_cred.json.
So if you restore both of these files it should all be working.

If instead you are backing up with export and restoring with import, the credentials are not exported.
This is a good thing if you are posting your flows in public, eg this forum.
Perhaps there should be an option in the export dialog to export credentials as well as the flows.

Some nodes do let you override the stored password with a message property. You can use context variables for this -
Flow 1 set global.emailpassword "Password1"
Flow 2 set msg.password from global.emailpassword

As well as restoring the credentials file, you also need to make sure the Secret is set the same in the restored system.

For backups you should generally backup everything in your .node-red folder except for the node_modules folder.
If restoring to a new system, then after restoring .node-red, go into that folder and run
npm install
which will regenerate the node_modules folder and install any missing nodes.

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.