Create a flow to export a flow to github

#1

Hey guys.
I have been trying to workout a way to backup my flows. I know there is a way where you can backup the files off the filesystem. However I do not want that just incase of a crash. I would like to have them backed up to a website of some sort.
I have found some places and nodes that allow you to upload the json to cloudant (i think it's called that) However, I have failed miserably for hours to set up the database on the website as I cant find details on exactly how to set it up.
So my current plan of attack was wellllll... i create a flow to export flows to github. I was thinking uploading individual flows however I think it'd probably be easier to start out with if it was just the entire thing then I can start with individual nodes.

So what I was thinking was on a deploy there would be an inject node that starts after the deploy and it somehow grabs all the flow json then uploads it to github. I have the inject node sorted and the github write to file sorted. I am not sure how to grab the json data from all flows part....
Any suggestions? I look forward to hearing them :slight_smile:

0 Likes

#2

Why not check out the built in projects capability ?

0 Likes

#3

sorry I am not sure what you mean by built in projects? do you mean flows that have been generated by other users?

0 Likes

#4

http://nodered.org/docs/user-guide/projects/

0 Likes