Secure your installation using this n8n workflow. Automatically export all decrypted n8n credentials using the Execute Command n8n node and store the backup safely in Google Drive.
Download this n8n workflow template and start using it instantly.
Maintaining an n8n instance requires robust backup strategies, especially concerning credentials that secure connectivity to hundreds of third-party services. Losing access to these credentials means rebuilding connections manually—a massive time sink. This crucial n8n workflow solves this by providing a reliable, automated solution.
It utilizes the system-level n8n export:credentials command to pull all decrypted credential data. The flow then processes this raw data and converts it into a clean JSON file, which is instantly uploaded to Google Drive. By setting up the Schedule n8n trigger, you ensure that your backups happen automatically, offering peace of mind and significantly reducing downtime in the event of system failure. This is one of the most essential n8n templates for any serious user.
This automation offers two starting points: the Manual n8n trigger (for immediate testing) and the Schedule n8n trigger (for periodic automated execution).
npx n8n export:credentials --all --decrypted command, exporting all current n8n credentials in decrypted JSON format.n8nbackupcredentials.json.To use this vital n8n workflow template, follow these steps:
npx n8n command and the necessary permissions to run system commands, which is often standard for self-hosted n8n setups.Folder ID parameter to point to your specific desired backup location. Schedule Trigger / On Click Trigger: These are the initial n8n trigger points. The Schedule Trigger allows the n8n workflow to run automatically at set intervals, ensuring routine data retention.
Execute Command Get All Cridentials: This core n8n node runs the npx n8n export:credentials --all --decrypted command. This command is the mechanism for pulling all stored credentials from the n8n database, making this n8n node central to the backup process.
JSON Formatting Data (Code): A custom Code n8n node that handles the messy output of the terminal command. It uses JavaScript to find the exact JSON array structure within the stdout and parses it into usable data items for the next steps in the n8n workflow.
Aggregate Cridentials: This n8n node is crucial for restructuring the data. After the Code node separates the credentials, Aggregate combines all items back into a single object, preparing them to be written into a single file.
Convert To File: Configured to use the toJson operation, this n8n node takes the aggregated JSON data and creates a binary file object named n8nbackupcredentials.json.
Google Drive Upload File: The final n8n node in this process. It takes the binary file created by the Convert To File n8n node and securely uploads it to a specified folder in your Google Drive account, ensuring the integrity of the n8n templates and connection data.
Learn how to use this robust n8n workflow template to automatically back up all your active n8n workflows daily to a dedicated GitHub repository using the internal n8n API node.

Use this comprehensive n8n workflow to automatically manage and refresh Zalo OA OAuth tokens. Securely cache tokens using n8n static data for reliable, persistent API access.

Use this powerful n8n workflow to automatically transcribe YouTube videos via Gemini AI and convert the output into structured, SEO-ready blog posts, complete with category and HTML formatting.

Secure your critical n8n workflow assets with this robust, scheduled automation. It backs up all active n8n templates to GitHub and automatically handles deletion synchronization.

Automate AI video generation using this powerful n8n workflow. Fetches ideas from Google Sheets, uses GPT-4 for prompt engineering, and generates videos via Fal AI VEO3 model. A reliable n8n template.

A Growth Hacker, Digital Marketer & AI Automation Builder with 10+ years of experience in Digital Marketing & Workflow Automation. Based in Helsinki, Finland. For questions about my templates and customization, contact me at: [email protected]







































