JUHE API Marketplace

Tools / Backup Gitlab

Active

Automated workflow for GitLab that backs up workflows and credentials on a schedule, ensuring data safety and easy recovery. Executes commands to export, commit, and push backups, providing peace of mind with regular updates.

Workflow Overview

Automated workflow for GitLab that backs up workflows and credentials on a schedule, ensuring data safety and easy recovery. Executes commands to export, commit, and push backups, providing peace of mind with regular updates.

Target Audience

  • Developers: Those who need to regularly back up their workflows and credentials in GitLab.
  • DevOps Engineers: Professionals responsible for maintaining CI/CD pipelines who require automated backups.
  • Project Managers: Individuals overseeing projects that utilize n8n for automation and need assurance of data integrity.
  • System Administrators: Personnel tasked with managing and securing workflows and credentials in production environments.

Problem Solved

This workflow addresses the challenge of ensuring that workflows and credentials in n8n are automatically backed up at scheduled intervals. By automating the export and version control process, it mitigates the risk of data loss and provides an easy recovery option in case of failures or errors.

Workflow Steps

  1. Scheduled Trigger: The workflow is initiated automatically at specified times: 0:00, 6:00, 12:00, and 18:00 hours.
  2. Export Workflows: The first action exports all workflows to the repo/workflows/ directory, creating a backup of the current state.
  3. Export Credentials: Following the workflow export, credentials are backed up to the repo/credentials/ directory.
  4. Git Add: All newly exported files are staged for commit using git -C repo add ..
  5. Git Commit: A commit is created with a message indicating the backup time, formatted as Auto backup (YYYY-MM-DDTHH:MM:SS.sssZ).
  6. Git Push: Finally, the changes are pushed to the remote repository to ensure that backups are stored securely and can be accessed when needed.

Statistics

7
Nodes
0
Downloads
20
Views
1715
File Size

Quick Info

Categories
Schedule Triggered
Simple Workflow
Complexity
simple

Tags

schedule
automation
simple
executecommand

Boost your workflows with Wisdom Gate LLM API

Supporting GPT-5, Claude-4, DeepSeek v3, Gemini and more. Free trial.