This repository is designed to help you automatically back up your n8n workflows at regular intervals. By using this setup, you can ensure that your workflows are safe and secure, even in the event of unexpected data loss or system failures.
Follow these steps to set up automated backups for your n8n workflows:
-
Create a Backup Repository: Start by creating a backup repository to your GitHub account.
-
Generate GitHub Token: Go to GitHub settings and generate a new token with the
repo
scope selected. Copy this token for later use. -
Configure new n8n workflow: In your n8n instance, set up a workflow with the template i provided here.
-
Create Required Cerdentials Create credentials like API forfor GitHub with the previous generated token. Also create a n8n API from the
Settings > n8n api > generate
-
Just Modify (Compulsory): If you want to change the backup frequency, you can modify the schedule, you also need to change the user, repo name etc as well.
For restoration I personally suggest you to download the JSON file from GitHub on your local machine and then import it from n8n.
Contributions are welcome! If you have any suggestions, improvements, or feature requests, feel free to open an issue or submit a pull request.
This project is licensed under the MIT License - see the LICENSE file for details.