summaryrefslogtreecommitdiff
path: root/gitlab-server/usr/share/gitlab-install/systemd-units/gitlab-backup.timer
diff options
context:
space:
mode:
authorLars Wirzenius <lars.wirzenius@codethink.co.uk>2014-05-19 16:20:53 +0000
committerLars Wirzenius <lars.wirzenius@codethink.co.uk>2014-05-20 14:23:45 +0000
commitcd86b155042f6fca18c231b862d8e923eb38b441 (patch)
treeef877aede038726888dd50e34331af4a1c84e3f2 /gitlab-server/usr/share/gitlab-install/systemd-units/gitlab-backup.timer
parentbc347a438b36c60931602bf86d4156d332cb9cde (diff)
downloaddefinitions-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.timer')
-rw-r--r--gitlab-server/usr/share/gitlab-install/systemd-units/gitlab-backup.timer8
1 files changed, 8 insertions, 0 deletions
diff --git a/gitlab-server/usr/share/gitlab-install/systemd-units/gitlab-backup.timer b/gitlab-server/usr/share/gitlab-install/systemd-units/gitlab-backup.timer
new file mode 100644
index 00000000..1c2f57ba
--- /dev/null
+++ b/gitlab-server/usr/share/gitlab-install/systemd-units/gitlab-backup.timer
@@ -0,0 +1,8 @@
+[Unit]
+Description=GitLab Backup Timer
+
+[Install]
+WantedBy=gitlab.target
+
+[Timer]
+OnCalendar=*-*-* 00/4:00:00