Templates / Back up GitHub repositories to Amazon S3 and send email reports

Back up GitHub repositories to Amazon S3 and send email reports

Ready for 3.0

by DataDrifter ✓ · 1 views · created 2026-09-18 · 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 15 nodes and runs on a schedule (cron 0 2 * * *). Along the way it connects AWS S3.

How it runs

Trigger: On a schedule (cron 0 2 * * *).

  1. Set Backup Parameters (Edit Fields (Set)): sets 6 fields: github_owner, s3_bucket, s3_prefix…
  2. Validate Backup Settings (Code): runs custom JavaScript code
  3. Fetch GitHub Account Info (HTTP Request): calls an HTTP API
  4. List GitHub Repos (HTTP Request): calls an HTTP API
  5. Process Each Repository (Loop Over Items (Split in Batches)): loops over the items in batches
  6. List S3 Backups (AWS S3): get many
  7. Download Repo Archive (HTTP Request): calls an HTTP API
  8. Filter Expired Backups (Code): runs custom JavaScript code
  9. Upload Archive to S (AWS S3): upload
  10. Log Repository Backup Status (Code): runs custom JavaScript code

…plus 4 more steps. See the full node list below.

Services it uses

AWS 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 (8)

From the author

Quick overview This workflow runs nightly to back up GitHub repositories by downloading each repo as a tarball and uploading it to Amazon S3, then deletes older archives based on a retention window and emails a run report via SMTP. How it works 1. Runs every…

Excerpt from DataDrifter'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.