Keep your automation safe without extra work. This setup copies all n8n workflows to Google Drive on a set schedule, moves yesterday’s files into an archive folder, and can remove old backups after a set number of days. It suits teams that want simple version safety and easy file access in Drive.
Here is how it runs. A scheduled trigger starts the job. The flow checks Google Drive for two folders and creates them if they do not exist. The n8n API pulls your workflows, then a file builder turns each workflow into a file and adds the active or inactive status to the file name. Files upload to the backups folder in batches. Before new uploads, current files are moved into the archive folder. A second schedule can list archive files and delete any that are older than your purge rule. A filter step avoids touching other Drive folders.
You will need a Google Drive account and an n8n API key. Connect both inside n8n credentials, set your run time, and pick the purge window if you want cleanup. Expect to cut manual exports and file moves to almost zero, while keeping a clean history. This is helpful for IT teams, agencies, or any group managing multiple n8n workflows.