Keep your n8n work safe with automatic Git backups. The system saves all workflows and credentials to a Git repository and pushes changes on a set schedule or on demand. It is great for teams that need clear history and fast recovery.
Two triggers kick things off. A schedule runs at midnight, 6 am, noon, and 6 pm, and there is also a manual start button when you want an instant backup. The flow first exports all workflows to a folder named repo/workflows. It then exports all credentials to repo/credentials. Next it stages the files, creates a commit with a timestamp in the message, and pushes to your remote repository. Everything runs with simple command steps, so you get a clean version trail without extra apps.
You need an environment where command execution is allowed, Git is installed, and a repository path is available on the server. Expect daily backups with no human steps, an audit trail for each change, and easier rollback when something breaks. This is well suited for IT teams, agencies, and anyone who must track changes and meet audit rules while running n8n in production.