# Create a flow to export a flow to github

**URL:** <https://discourse.nodered.org/t/create-a-flow-to-export-a-flow-to-github/2017>\
**Category:** General\
**Created:** [2 August 2018 23:00 UTC](https://discourse.nodered.org/t/create-a-flow-to-export-a-flow-to-github/2017 "2018-08-02T23:00:49Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![BlinkScooby](https://avatars.discourse-cdn.com/v4/letter/b/22d042/32.png) [@BlinkScooby](https://discourse.nodered.org/u/BlinkScooby)\
**Post date:** [2 August 2018 23:00 UTC](https://discourse.nodered.org/t/create-a-flow-to-export-a-flow-to-github/2017/1 "2018-08-02T23:00:49Z")

</div>

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 🙂

---

<div class="post-metadata">

**Author:** ![dceejay](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dceejay/32/38_2.png) [@dceejay](https://discourse.nodered.org/u/dceejay)\
**Post date:** [2 August 2018 23:20 UTC](https://discourse.nodered.org/t/create-a-flow-to-export-a-flow-to-github/2017/2 "2018-08-02T23:20:51Z")

</div>

Why not check out the built in projects capability ?

---

<div class="post-metadata">

**Author:** ![BlinkScooby](https://avatars.discourse-cdn.com/v4/letter/b/22d042/32.png) [@BlinkScooby](https://discourse.nodered.org/u/BlinkScooby)\
**Post date:** [2 August 2018 23:36 UTC](https://discourse.nodered.org/t/create-a-flow-to-export-a-flow-to-github/2017/3 "2018-08-02T23:36:09Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![dceejay](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dceejay/32/38_2.png) [@dceejay](https://discourse.nodered.org/u/dceejay)\
**Post date:** [2 August 2018 23:45 UTC](https://discourse.nodered.org/t/create-a-flow-to-export-a-flow-to-github/2017/4 "2018-08-02T23:45:20Z")

</div>

[http://nodered.org/docs/user-guide/projects/](http://nodered.org/docs/user-guide/projects/)
