This n8n workflow automates the process of backing up all your n8n workflows to Google Drive every hour. It creates a unique backup folder named with the current date and hour, then exports each workflow as a JSON file into that folder. Additionally, the workflow includes a cleanup mechanism that deletes backup folders older than a specified number of days, helping manage storage space efficiently. This automation is ideal for n8n administrators and users who want to ensure their workflows are safely backed up and versioned regularly without manual intervention.
The process begins with a schedule trigger that runs hourly, capturing the current date and hour for naming purposes. A new backup folder is then created in Google Drive. The workflow fetches all existing n8n workflows via API, converts each into a binary JSON format, and uploads them individually to the created folder. To prevent exceeding API rate limits, a short delay is included between uploads. Lastly, the system searches for backup folders older than the retention period (default of 7 days) and deletes them, maintaining optimal storage use.
This setup is highly customizable—users can change backup frequency, folder naming conventions, or filter specific workflows for backup. It’s an essential tool for proactive workflow management, disaster recovery, and maintaining a historical record of automation configurations.
Reviews
There are no reviews yet.