---
title: "Discussion on \"Automatic n8n backups: cron, encrypted copies and a tested restore\" | Hashnode"
description: "Discussion on \"Automatic n8n backups: cron, encrypted copies and a tested restore\". A script that saves the n8n database, .n8n folder and key every day, sends an encrypted copy to an S3 bucket and proves that it restores."
url: "https://hashnode.com/posts/n8n-automatic-backup/6b003f755a93c41a0c992fbb"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Automatic n8n backups: cron, encrypted copies and a tested restore](https://nuvits.hashnode.dev/n8n-automatic-backup?utm_source=hashnode&utm_medium=feed)

A script that saves the n8n database, .n8n folder and key every day, sends an encrypted copy to an S3 bucket and proves that it restores.

2d ago · 10 min read · nuvits.hashnode.dev  
Read the article

-   [#n8n](https://hashnode.com/tag/n8n)
-   [#backup](https://hashnode.com/tag/backup)
-   [#self-hosted](https://hashnode.com/tag/self-hosted)
-   [#devops](https://hashnode.com/tag/devops)

## Written by

[Fernando Chagas](https://hashnode.com/@fernandochagas)

@fernandochagas

  
[View profile](https://hashnode.com/@fernandochagas)

Building Nuvits: VPS in Brazilian reais and MCP for AI agents

## Responses 1

Markdown supported · ⌘↵ to post

[Rishabh Mishra](https://hashnode.com/@rushdeploy)

[1d ago](https://hashnode.com/posts/n8n-automatic-backup/6b003f755a93c41a0c992fbb/comment/6b0109752af2e1d651dbfc98)

The restore test is the part most people skip, and checking that credentials still decrypt after the restore is the detail that makes it real. One thing I'd add is a longer-lived monthly snapshot alongside the 30-day rotation, since a bad workflow edit can sit unnoticed for weeks. That way a restore point from before the problem still exists.
