diff options
author | Lars Wirzenius <lars.wirzenius@codethink.co.uk> | 2014-05-19 16:20:53 +0000 |
---|---|---|
committer | Lars Wirzenius <lars.wirzenius@codethink.co.uk> | 2014-05-20 14:23:45 +0000 |
commit | cd86b155042f6fca18c231b862d8e923eb38b441 (patch) | |
tree | ef877aede038726888dd50e34331af4a1c84e3f2 /gitlab-server/usr/share/gitlab-install/systemd-units/gitlab-backup.service | |
parent | bc347a438b36c60931602bf86d4156d332cb9cde (diff) | |
download | definitions-cd86b155042f6fca18c231b862d8e923eb38b441.tar.gz |
Add GitLab backup automation
This adds a systemd timer unit to back up a GitLab instance every
four hours. The backup is placed as /home/git/gitlab-backup.tar and
it is expected Something Else retrieves that.
Diffstat (limited to 'gitlab-server/usr/share/gitlab-install/systemd-units/gitlab-backup.service')
-rw-r--r-- | gitlab-server/usr/share/gitlab-install/systemd-units/gitlab-backup.service | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/gitlab-server/usr/share/gitlab-install/systemd-units/gitlab-backup.service b/gitlab-server/usr/share/gitlab-install/systemd-units/gitlab-backup.service new file mode 100644 index 00000000..967a65e3 --- /dev/null +++ b/gitlab-server/usr/share/gitlab-install/systemd-units/gitlab-backup.service @@ -0,0 +1,11 @@ +[Unit] +Description=GitLab Backup Run +After=postgres.service + +[Install] +WantedBy=gitlab.target + +[Service] +ExecStart=/usr/share/gitlab-install/backup-gitlab +User=git +Group=git |