I have been making software for over a decade now. And one thing I have learned to love through this is automation.
After all, it is only a programmer who will spend hours automating a task that takes a few minutes to do.
There are good reasons for this.
I have a self-hosted GitLab instance for Furqan Software. And if you are self-hosting tools and services, the critical thing to do after ensuring security is automating backups.
Here is what an Ansible playbook looks like for backing up a self-hosted GitLab.
Note that the
gitlab-backup create command is sufficient to create the backup archive on the remote server. But this Ansible playbook backs up GitLab to a
.tar file and downloads it to the local computer.
comments powered by Disqus