Skip to content
This repository has been archived by the owner on Aug 22, 2021. It is now read-only.

Commit

Permalink
Added LaunchDaemon to run gitlab backup
Browse files Browse the repository at this point in the history
  • Loading branch information
raldred committed Aug 18, 2016
1 parent f0cf742 commit 33c4c93
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions com.gitlab.backup.plist
@@ -0,0 +1,38 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN"
"http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Label</key>
<string>com.gitlab.backup</string>
<key>UserName</key>
<string>git</string>
<key>WorkingDirectory</key>
<string>/Users/git/gitlab</string>
<key>EnvironmentVariables</key>
<dict>
<key>RAILS_ENV<a/key>
<string>production</string>
<key>PATH</key>
<string>/Users/git/.rbenv/shims:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/Applications/Server.app/Contents/ServerRoot/usr/bin:/Applications/Server.app/Contents/ServerRoot/usr/sbin</string>
</dict>
<key>ProgramArguments</key>
<array>
<string>bundle</string>
<string>exec</string>
<string>rake</string>
<string>gitlab:backup:create</string>
</array>
<key>StartCalendarInterval</key>
<dict>
<key>Hour</key>
<integer>10</integer>
<key>Minute</key>
<integer>20</integer>
</dict>
<key>StandardOutPath</key>
<string>/usr/local/var/log/gitlab_backup.log</string>
<key>StandardErrorPath</key>
<string>/usr/local/var/log/gitlab_backup_err.log</string>
</dict>
</plist>

0 comments on commit 33c4c93

Please sign in to comment.