diff options
Diffstat (limited to 'gitlab-backup.service')
-rw-r--r-- | gitlab-backup.service | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/gitlab-backup.service b/gitlab-backup.service new file mode 100644 index 000000000000..ffaa7f3d199e --- /dev/null +++ b/gitlab-backup.service @@ -0,0 +1,21 @@ +[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 + +CapabilityBoundingSet= +PrivateTmp=true +PrivateDevices=true +ProtectSystem=full +ProtectHome=true +NoNewPrivileges=true + +ExecStart=/usr/bin/bundle exec rake gitlab:backup:create
\ No newline at end of file |