n8n

How to Automate n8n to Google Drive Backups?

Keep a safe copy of every n8n workflow in Google Drive without lifting a finger. It is ideal for teams that want simple backups for disaster recovery, audits, and migrations. Run it on a set time and know your work is protected.

A schedule starts the run at a chosen time. A settings node holds the Google Drive folder link so you can change it in one place. The n8n node pulls all workflows from your account. A code step turns each workflow into a JSON file and prepares it for upload. The Google Drive node saves each file into your chosen folder using the workflow name. This design reduces risk, speeds up recovery, and keeps backups easy to find.

You only need access to a Google Drive folder and n8n credentials. Paste the folder URL into the settings node, connect the Google Drive and n8n credentials, and adjust the time. Expect one JSON file per workflow in your Drive. Many teams use it before big edits, when moving to a new n8n instance, or to keep proof of change history for reviews.

What are the key features?

  • Scheduled run at a set time using a schedule trigger
  • Central folder control with a settings node that stores the Google Drive URL
  • Fetches every workflow from your n8n account with the n8n API node
  • Converts each workflow to a JSON file in the code step and attaches it as binary
  • Uploads each file to Google Drive and names it with the workflow name plus .json

What are the benefits?

  • Reduce manual backup work from 60 minutes to 2 minutes per week
  • Automate 100 percent of workflow backups on a set schedule
  • Improve recovery accuracy by saving exact JSON definitions
  • Connect n8n and Google Drive without custom scripts
  • Scale to hundreds of workflows with the same setup

How do you set it up?

  1. Import the template into n8n: Create a new workflow in n8n > Click the three dots menu > Select 'Import from File' > Choose the downloaded JSON file.
  2. You'll need accounts with Google Drive and n8n. See the Tools Required section above for links to create accounts with these services.
  3. In n8n, open the Credentials section. Double click the Google Drive node, then in the Credential to connect with dropdown, click Create new credential and follow the on screen steps to grant access to your Drive.
  4. Double click the Get all n8n Workflows node. In the Credential to connect with dropdown, click Create new credential and follow the on screen steps to connect to your n8n account.
  5. In Google Drive, create or choose a folder for backups. Copy the folder URL from your browser.
  6. Open the Parameters node and replace the directory value with your Google Drive folder URL. Save your changes.
  7. Open the Schedule Trigger and set the hour and minute you want the backup to run. Confirm the timezone in your n8n settings.
  8. Click Execute Workflow to run a test. When it finishes, check the target Google Drive folder for JSON files named after your workflows.
  9. If no files appear, confirm the folder URL is correct, the Google Drive credential has file access, and the Google Drive node is set to use the URL mode for the folder field.
  10. Open one JSON file to verify content. It should show the workflow name and nodes in JSON format.
  11. Activate the workflow. Check the next scheduled run and confirm new files are created or updated as expected.

Tools Required

$24 / mo or $20 / mo billed annually to use n8n in the cloud. However, the local or self-hosted n8n Community Edition is free.

Google Drive

Sign up

Drive API: $0 (no additional cost; quota-limited)

n8n API

Sign up

Community Edition (self-hosted): $0 (public REST API available). Cloud Starter: $20 / mo billed annually ($24 monthly); API unavailable during free trial.

Similar Templates

Join Futurise to access 1,200+ automation templates

Get instant access to ready-made automation workflows for n8n, Make.com, AI agents, and more. Download, customise, and deploy in minutes.