This n8n workflow automates the process of backing up n8n workflows to Google Drive, managing backup folders, and purging old backups. The system is scheduled to run nightly, creating copies of current workflows, moving outdated files to an archive folder, and deleting backups older than 30 days for storage efficiency.
The workflow begins with a scheduled trigger, activating every night or at a user-defined interval. It then checks for the existence of two essential folders on Google Drive: ‘n8n_backups’ for current backups and ‘n8n_old’ for archived backups. If these folders do not exist, they are created automatically.
Next, the workflow retrieves existing backups and organizes new backups by uploading workflow data as JSON files. Older backup files are systematically moved to the ‘n8n_old’ folder, with filenames tagged with timestamps for easy identification.
A cleanup step is included to automatically delete backups older than 30 days, maintaining optimal storage use. Throughout the process, informative sticky notes are added, providing guidance and details about the workflow’s functions.
This setup is ideal for automating disaster recovery, maintaining version control of workflows, and ensuring storage management without manual intervention, making it a valuable tool for streamlining workflow management in n8n integrated with Google Drive.
Reviews
There are no reviews yet.