Templates / Automate workflow & credentials backup to S3 with retention management

Automate workflow & credentials backup to S3 with retention management

Ready for 3.0

by Tobias Mende · 827 views · created 2025-07-25 · DevOps

Ready for 3.0. This template uses no nodes that n8n 3.0 removes. No removed nodes, versions or helpers found. Static check, last run 2026-10-19.

What this workflow does

This workflow has 12 nodes and runs on a schedule (every day at 23:00). Along the way it connects S3.

How it runs

Trigger: On a schedule (every day at 23:00).

  1. Config (Edit Fields (Set)): sets 5 fields: bucketName, timstamp, retention…
  2. Get many workflows (n8n): uses n8n
  3. Get Existing Backups (S3): search (bucket)
  4. Export Credentials (Execute Command): runs a shell command on the n8n host
  5. Store Workflow Backup (S3): upload
  6. Extract Date (Edit Fields (Set)): sets 2 fields: date, key
  7. Load Credentials (Read/Write Files from Disk): reads a file from disk
  8. Keep Outdated Backups (Filter): keeps only the items that match a condition
  9. Store Credentials Backup (S3): upload
  10. Delete Outdated Backups (S3): delete

…plus 1 more step. See the full node list below.

Services it uses

S3

Before you upgrade to n8n 3.0

Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.

Nodes used (7)

From the author

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…

Excerpt from Tobias Mende's description on n8n.io.

View the original on n8n.io → Check your own copy

Get the weekly “what broke” email

New templates, newly broken ones, and n8n release changes. One short email a week.

Form not loading? Subscribe here.