This n8n workflow automates the process of backing up n8n data to Nextcloud with a 7-day retention policy. Triggered manually or via schedule, it creates timestamped backup directories, uploads backup files, and manages old backups to free up storage. The workflow offers a reliable way to ensure data redundancy and retention management for n8n workflows, especially useful for users managing critical workflow data or configurations.
The process begins with a manual trigger or schedule, then optionally displays an informational sticky note. It retrieves the existing backup list from Nextcloud, creates a new backup directory with a current timestamp, and generates the backup content. The content is formatted into JSON files with sanitized filenames, and these files are uploaded to the newly created directory. The workflow then compares the total backups and deletes older backups exceeding the 7-day limit, ensuring efficient storage management.
This automation is ideal for recurring backups of n8n workflows, credentials, or other critical data, providing peace of mind and easy recovery options.
Reviews
There are no reviews yet.