Block 1 - Get many workflows
- Type / Role
- n8n-nodes-base.n8n - n8n
- Config choices
- Version 1
This workflow is provided as-is. Please review and test before using in production.
This n8n template automates daily backups of workflows and credentials to S3 compatible storage with automatic retention management. Designed for self hosted n8n instances requiring disaster recove...
n8n-nodes-base.n8n, n8n-nodes-base.set, n8n-nodes-base.filter, n8n-nodes-base.s3, n8n-nodes-base.executecommand, n8n-nodes-base.readwritefile, n8n-nodes-base.scheduletrigger, n8n-nodes-base.stickynote
This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by Tobias Mende.
Original n8n.io sourceThis n8n template automates daily backups of workflows and credentials to S3-compatible storage with automatic retention management. Designed for self-hosted n8n instances requiring disaster recovery protection.
The workflow has three tasks: backs up all workflows via n8n API, exports and stores credentials securely, and automatically deletes outdated backups based on configurable retention policies. Perfect for administrators needing automated backup solutions with storage cost management.
The workflow operates through three synchronized branches that execute automatically on a daily schedule:
Workflow Backup Process: The schedule trigger initiates daily backups, retrieving all workflows via the n8n API and storing them as timestamped JSON files in your S3 bucket.
Retention Management: Simultaneously, the system lists existing backup files, extracts dates from filenames, applies retention policies to identify outdated backups, and automatically deletes files beyond the configured retention period.
Credential Backup: In parallel, the workflow exports all n8n credentials to a temporary file, uploads the encrypted credential data to S3 storage, and securely removes temporary files from the local system.
Before implementing this template, ensure you have the following requirements in place:
Self-Hosted n8n Instance: This template requires a self-hosted n8n installation with file system access for credential export functionality. Cloud-hosted n8n instances cannot export credentials due to security restrictions.
S3-Compatible Storage: Set up an S3 bucket (AWS S3, MinIO, DigitalOcean Spaces, or any S3-compatible service) with read/write permissions configured for your backup storage needs.
Access Credentials: Obtain S3 access credentials (Access Key ID and Secret Access Key) with appropriate bucket permissions for file operations (create, delete, list).
System Permissions: Ensure your n8n instance has command-line access and file system permissions for credential export and temporary file management operations.
Create and configure your S3-compatible storage bucket:
Configure S3 credentials in all storage-related nodes.
Create an API key for n8n via the n8n settings of your n8n instance.
Set this API key in the n8n node configuration. These credentials are neccesary to retrieve all workflows.
Customize the Daily Backup schedule trigger:
0 2 * * *0 0 * * *0 0,12 * * *The retention management system automatically maintains your backup storage:
Configurable Retention Period: Set how many days of backups to retain (default: 31 days). The system automatically calculates cutoff dates and removes older files.
Date-Based Cleanup: The Extract Date node processes backup filenames to determine file age, while the Keep Outdated Backups filter identifies files beyond the retention period.
Automatic Deletion: Outdated files are automatically removed from S3 storage, preventing unlimited storage growth and managing costs effectively.
This catalog entry is organized from the workflow JSON. The node-level section below shows the executable blocks available for review before importing the template.
| Workflow | Automate workflow & credentials backup to S3 with retention management |
|---|---|
| Complexity | advanced |
| Nodes | 19 |
| Categories | DevOps |
| Author | Tobias Mende |
| Published | 25 Jul 2025 |
Use the JSON export at /data/workflows/6436/6436.json as the source template for this automation.
Open n8n, import the downloaded JSON, and review each node before activating the workflow.
Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.
Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.
Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.
Review imported nodes carefully before activation. This catalog entry is intended to help you inspect the workflow structure, understand required services, and find related templates faster.
Node names, credentials, schedules, webhook paths, and external service limits may need adjustment for your workspace.
This n8n template automates daily backups of workflows and credentials to S3 compatible storage with automatic retention management. Designed for self hosted n8n instances requiring disaster recove...
Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.
Yes. Use the block-by-block analysis and the downloadable JSON to inspect each node, then adjust credentials, prompts, schedules, filters, or destinations for your DevOps use case.