I run n8n self-hosted, and the backup of the server itself is also an n8n workflow. The part I care about most is not the upload but the check: a backup job that silently uploads nothing is worse than no backup job, because you think you are safe.
What it does (every day at 04:40):
- A shell script (cron, 03:10) creates an encrypted archive
backup-daily-YYYY-MM-DD.tar.gpgin an outbox folder. - n8n reads the archive and a Code node checks it: is there exactly one archive from today, and is it bigger than 1 MB? If not, the node throws an error, so my error workflow sends me a Telegram message instead of the run “succeeding” with zero files.
- The archive is uploaded to a Google Drive folder.
- n8n lists the folder, keeps the 14 newest archives and permanently deletes the older ones.
Why the check matters: without step 2 a broken backup script still gives you a green execution in n8n. With it, a missing or suspiciously small archive is a red execution and a notification.
To use it: add your Google Drive credentials to the three Drive nodes, replace YOUR_BACKUP_FOLDER_ID, and point the Read File node to the folder where your backup script writes. Set an error workflow in the workflow settings so the thrown errors reach you.
I wrote up the reasoning behind it (in German) here: Backups automatisieren mit n8n: Warum die Prüfung wichtiger ist als die Sicherung – Nikita Rozumnyi
Happy to hear how others verify their backups.