workflows.fit
Back to n8n workflows
n8n templateFreeBy Tobias Mende

Automate workflow & credentials backup to S3 with retention management

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 recovery protection. The w...

DevelopmentData & StorageCore NodesN8nSetFilterS3
Loading interactive preview...

Template notes

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 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.

Target Audience

- n8n Administrators: Managing production n8n instances requiring reliable backup solutions - DevOps Teams: Implementing disaster recovery strategies for automation infrastructure - IT Managers: Ensuring business continuity and compliance for critical automation workflows - System Administrators: Maintaining secure, automated backup processes for workflow management platforms

How it works

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.