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.
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.
repo/workflows/
directory, creating a backup of the current state.repo/credentials/
directory.git -C repo add .
.Auto backup (YYYY-MM-DDTHH:MM:SS.sssZ)
.