workflows.fit
Back to n8n workflows
n8n templateFreeBy Joachim Hummel

N8N backup flow to Nextcloud (7-day retention)

This workflow automates the daily backup of all your n8n workflows to a designated folder in Nextcloud. It ensures that you always have the last 7 days of backups available while automatically deleting older ones to s...

Data & StorageDevelopmentCore NodesManual TriggerN8nSplit In BatchesSort
Loading interactive preview...

Template notes

This workflow automates the daily backup of all your n8n workflows to a designated folder in Nextcloud. It ensures that you always have the last 7 days of backups available while automatically deleting older ones to save space.

đź”§ Features

Scheduled Trigger: Runs automatically once per day (can be executed manually as well).

Directory Management: Creates the /N8N-Backup directory in Nextcloud if it doesn't already exist.

Backup Collection: Retrieves all workflows from the n8n instance.

JSON Conversion: Converts each workflow into a JSON file.

Upload to Nextcloud: Saves each backup file into the specified backup directory.

Retention Control: Keeps only the latest 7 backups and deletes the rest from Nextcloud.