summarylogtreecommitdiffstats
path: root/gitlab-backup.service
diff options
context:
space:
mode:
authorSergey Shatunov2016-11-06 03:37:02 +0700
committerSergey Shatunov2016-11-06 03:37:02 +0700
commitd1e122af0f4173ef9bb93106af1c47c281deb030 (patch)
treed7029dac0804c4c3a9886f91d5297dcb84deccfd /gitlab-backup.service
downloadaur-d1e122af0f4173ef9bb93106af1c47c281deb030.tar.gz
Initial release
Diffstat (limited to 'gitlab-backup.service')
-rw-r--r--gitlab-backup.service19
1 files changed, 19 insertions, 0 deletions
diff --git a/gitlab-backup.service b/gitlab-backup.service
new file mode 100644
index 000000000000..603be09711a0
--- /dev/null
+++ b/gitlab-backup.service
@@ -0,0 +1,19 @@
+[Unit]
+Description=GitLab Backup process
+Requires=
+After=network.target
+
+[Service]
+Type=oneshot
+User=gitlab
+Group=gitlab
+SyslogIdentifier=gitlab-backup
+WorkingDirectory=<DATADIR>
+Environment=RAILS_ENV=production PATH=/opt/ruby/bin:/usr/bin
+CapabilityBoundingSet=
+PrivateTmp=true
+PrivateDevices=true
+ProtectSystem=full
+ProtectHome=true
+NoNewPrivileges=true
+ExecStart=/usr/bin/bundle exec rake gitlab:backup:create