Backup all n8n workflows to Google Drive every 4 hours

Nodes

e6ae7503-2949-4cf6-8d11-9f146c34f723cc410a33-acd1-4c16-aba9-bd8029d93b47818211a2-bc09-427d-bfa4-d8db9fbffb50

Categories

Created by

ImImperol

Last edited 13 days ago

This workflow takes off the task of backing up workflows regularly on Github and uses Google Drive as the main tool to host these.

This can be a good way to keep track of your workflows so that you never lose any workflows in case your n8n goes down.

How does it work

  1. Creates a new folder within a specified folder with the time its backed up
  2. Loops around all workflows, converts them to a JSON file and uploads them to the created folder
  3. Gets the previous backups and deletes them

This has a clean feel and look as it simplifies the backup while not keeping a cache of workflows on your drive.

Setup

  1. Create a new folder
  2. Create new service account credentials
  3. Share the folder with the service account email
  4. Upload this workflow to your canvas and map the credentials
  5. Set the schedule that you need your workflows to run and manage your backups
  6. Activate the workflow

Happy Productivity!

@Imperol

New to n8n?

Need help building new n8n workflows? Process automation for you or your company will save you time and money, and it's completely free!