Backup self hosted n8n workflows to git

Few dependency:

  • Self hosted ( due to execute command )
  • Git server with u/p auth
  • jq available on the n8n server
  • At least version 1.0.x of n8n as I used Python in the code blocks

Hey @userX,

Thanks for sharing, It looks like something important may have been removed so the workflow json you have provided isn’t valid.

Hmm Ok I will edit, do you have any ready sanitizer instructions, I did it by hand now, just remove any unique ids, but I will edit the posting as soon as I found out what i missed.

I just replace any valye that coule be sensative with and X or a 1 depending on the data type.

fixed the snipped now it’s rendered correctly

1 Like