AutomationMart
Home/Browse/Automated n8n credential backups to Google Drive with scheduled execution
n8n

Automated n8n credential backups to Google Drive with scheduled execution

n8nn8n7 modulesv1.0
SlackDiscordGoogle Drive

This n8n workflow template uses community nodes and is only compatible with the self-hosted version of n8n. Auto Backup n8n Credentials to Google Drive This workflow automates the backup of all your n8n credentials. It can be triggered manually for on-demand backups or will run automatically on a schedule (default to daily execution). It executes a command to export decrypted credentials, formats them into a JSON file, and then uploads this file to a specified Google Drive folder. This process

At a glance

Automated n8n credential backups to Google Drive with scheduled execution is a ready-made n8n workflow you import as a workflow JSON file — no build required. It connects Slack, Discord, Google Drive. It's free to download. Follow the 5-step import below to go live in minutes.

Platform
n8n
Connects
Slack, Discord, Google Drive
Modules
7
Price
Free
Version
v1.0
Automated n8n credential backups to Google Drive with scheduled execution workflow diagram

About this workflow

This n8n workflow template uses community nodes and is only compatible with the self-hosted version of n8n. Auto Backup n8n Credentials to Google Drive This workflow automates the backup of all your n8n credentials. It can be triggered manually for on-demand backups or will run automatically on a schedule (default to daily execution). It executes a command to export decrypted credentials, formats them into a JSON file, and then uploads this file to a specified Google Drive folder. This process is essential for creating secure backups of your sensitive credential data, facilitating instance recovery or migration. We recommend you use this backup workflow in conjunction with a restore solution like our "Restore Credentials from Google Drive Backups" template. For more powerful n8n templates, visit our website or contact us at AI Automation Pro. We help your business build custom AI workflow automation and apps. Who is this for? This workflow is designed for n8n administrators and users who require a reliable method to back up their n8n credentials. It is particularly beneficial for those managing self-hosted n8n instances, where direct server access allows for command-line operations. What problem is this workflow solving? / use case Managing and backing up n8n credentials manually can be a tedious task, susceptible to errors and often overlooked. This workflow solves the problem by providing an automated, secure, and consistent way to back up all credential data. The primary use case is to ensure that a recovery point for credentials exists, safeguarding against data loss, assisting in instance migrations, or for general disaster recovery preparedness, ideally on a regular, automated basis. What this workflow does The workflow proceeds through the following steps: 1. Triggers: The workflow includes two types of triggers: Manual Trigger: An "On Click Trigger" allows for on-demand execution whenever needed. Scheduled Trigger: A "Schedule Trigger" is included, designed for automated daily backups. 2. Export Credentials: An "Execute Command" node runs the shell command npx n8n export:credentials --all --decrypted. This command exports all credentials from the n8n instance in a decrypted JSON format. 3. Format JSON Data: The output from the command is processed by a "Code" node ("JSON Formatting Data"). This node extracts, parses, and formats the JSON to ensure it is well-structured. 4. Aggregate Credentials: An "Aggregate" node ("Aggregate Cridentials") combines individual credential entries into a single JSON array. 5. Convert to File: The "Convert To File" node transforms the aggregated JSON array into a binary file, preparing it as n8nbackupcredentials.json. 6. Upload to Google Drive: The "Google Drive Upload File" node uploads the generated JSON file to a specified folder in Google Drive. Step-by-step setup To use this workflow, you'll need to configure a few things: 1. n8n Instance Environment: The n8n instance must have access to the npx command and the n8n-cli package. The "Execute Command" node must be able to run shell commands on the server where n8n is hosted. 2. Google Drive Credentials: In the "Google Drive Upload File" node, select or create your Google Drive OAuth2 API credentials. 3. Google Drive Folder ID: Update the folderId parameter in the "Google Drive Upload File" node with the ID of your desired Google Drive folder. 4. File Name (Optional): The backup file will be named n8nbackupcredentials.json. You can customize this in the "Google Drive Upload File" node. 5. Configure Schedule Trigger: The workflow includes a "Schedule Trigger". Review its configuration to ensure it runs daily at your preferred time. How to customize this workflow to your needs Adjust Schedule: Fine-tune the "Schedule Trigger" for different intervals (e.g., weekly, hourly) or specific days/times as per your requirements. Notifications: Add notification nodes (e.g., Slack, Email, Discord) after the "Google Drive Upload File" node to receive alerts upon successful backup or in case of failures. Enhanced Error Handling: Incorporate error handling branches using "Error Trigger" nodes or conditional logic to manage potential failures. Client-Side Encryption (Advanced): If your security policy requires the backup file itself to be encrypted at rest in Google Drive, you can add a step before uploading. Insert a "Code" node or use an "Execute Command" node with an encryption utility (like GPG) to encrypt the n8nbackupcredentials.json file. Remember that you would then need a corresponding decryption process. Dynamic File Naming: Modify the "Google Drive Upload File" node to include a timestamp in the filename (e.g., n8nbackupcredentials{{$now.toFormat('yyyyMMddHHmmss')}}.json) to keep multiple versions of backups. Important Note on Credential Security To simplify the setup and use of this backup workflow, the exported credentials are stored in the resulting JSON file in a decrypted state. This means the backup file itself is not further encrypted by this workflow. Consequently, it is critically important to: Ensure the Google Drive account used for backups is highly secure (e.g., strong password, two-factor authentication). Restrict access to the Google Drive folder where these backups are stored to only authorized personnel.

n8n

How to import this n8n workflow

  1. 1

    Download the workflow JSON file after purchase.

  2. 2

    Open n8n → click the menu → Import from File.

  3. 3

    Select the downloaded JSON and import.

  4. 4

    Set up credentials for each node that requires them.

  5. 5

    Click Execute Workflow to test, then activate.

Setup guide

Setup guide included

Purchase to unlock the full step-by-step guide

Related N8n workflows

Build an AI powered phone agent 📞🤖 with Retell, Google Calendar and RAG

This Workflow simulates an AI-powered phone agent with RetellAI with two main functions: 1. 📅 Appointment Booking – It can schedule appointments directly into Google Calendar. 2. 🧠 RAG-based Information Retrieval – It provides answers using a Retrieval-Augmented Generation (RAG) system. For example, it can respond to questions such as store opening hours, return policies, or product details. The guide also explains how to purchase a dedicated phone number (with a +1 prefix) and link it to the A

Free

Create GIFs using GIPHY from Google Calendar events and send a message on Discord

Whenever you have new events on Google Calendar, Make will create GIFs and send them with the event details as a message in Discord.

Free

Send a Slack message when keyword rank drops

This template regularly checks for keyword rank changes via DataForSEO API, uses the retrieved information to update rows in Google Sheets and sends a Slack message when keyword rank drops. You can change the schedule after you set up the template by clicking the clock icon on the first module. The template uses this <a href="https://docs.google.com/spreadsheets/d/1SUmLmZU-j9ifENMK3uHJ_gGENdnPaF7ft4OFMKnYrQk/edit?usp=sharing" target="blank">Example Spreadsheet.</a> If you want to use a differen

Free

Migrate a Google Drive folder to Google Cloud Storage

This template helps you export files from a Google Drive folder to the GCS bucket of your choice. The scenario can be setup to run at regular intervals (every hour, day, week, etc..).

Free

Send messages to Slack for new users or leads in Customerly

Every time there is a new user or lead added to Customerly, Make will automatically send a message containing info about that user or lead via Slack.

Free

Multiple websites monitoring with notifications including phone calls

What problem does this workflow solve? Automatically monitor multiple websites every 5 minutes, log downtime, notify your team instantly via multiple channels, and track uptime/downtime in a Google Sheet—without relying on expensive monitoring tools. --- ⚙️ What does this workflow do? 1. Triggers every 5 minutes to monitor website health. 2. Fetches a list of website URLs from a Google Sheet. 3. Checks the status of each website one by one. 4. Sends instant alerts if a website is do

Free

Classify and route DevOps chat requests with Mattermost and Claude

Automatically classify and route DevOps requests from your team chat using LLM + on-call calendar lookup. What it does This workflow turns your Mattermost channel into a smart DevOps intake system. When someone mentions @devops-duty, the workflow: 1. Receives the message via Mattermost outgoing webhook 1. Classifies the request into one of 8 categories using an LLM 1. Looks up the current on-call engineer from Google Calendar 1. Routes the request through a Switch node based on category 1. A

Free

Sync new Shopify customers to Odoo and notify via Gmail, SMS, WhatsApp and Telegram

Quick Overview This workflow triggers when a new customer is created in Shopify, creates a matching contact in Odoo if needed, and sends notifications via Gmail, MessageBird SMS, Rapiwa WhatsApp, and Telegram to welcome the customer and alert admins. How it works 1. Triggers when a new customer is created in Shopify. 2. Looks up existing contacts in Odoo and evaluates whether the customer already exists. 3. Creates a new contact in Odoo (res.partner) using the Shopify customer’s name, email, and

Free

Reviews

No reviews yet

Be the first to buy and share your experience.

Leave a review

Sign in to share your experience with this workflow.

Log in to review
Free
No ratings yet

Create a free account to purchase workflows.

  • JSON blueprint — instant download
  • Setup guide PDF included
  • 5 downloads · valid 30 days
  • Works with n8n

Need help setting this up?

Book a 3-hour live setup session with an Agility consultant.

₹2,499/ session
3 hrs · video call
  • Configure live on Google Meet / Zoom
  • Free follow-up if workflow has defects
  • Platform expert assigned to you
Book installation session
Free