/ghe-cp

GitHub Enterprise Backup Cronjob with S3 Backups and Slack Notifications

Primary LanguageMakefileMIT LicenseMIT

ghe-cp

A cronjob script to assist in performing nightly GitHub Enterprise backups, uploading of the backup snapshot to AWS S3, and notify a Slack channel on the status of the backup.

Requirements

You will need the following installed and configured on your backup machine:

Additionally, you will need to set up an incoming Webhook on your Slack instance:

Install

$ git clone https://github.com/elliottcarlson/ghe-cp
$ cd ghe-cp
$ make
Checking for GitHub Enterprise Backup Utilities...
Found in /home/ec2-user/backup-utils.
Checking for AWS CLI tools...
Installing daily crontab...
Enter the Slack Webhook URL that will receive Slack messages.
Slack Webhook URL: https://hooks.slack.com/services/XXXXXXXXX/XXXXXXXXXXXXXXXXXXXXXXXXXX
Enter the Slack Channel to send messages to.
Slack Channel: #ghe-ops
Enter the AWS S3 bucket name to save snapshots to.
S3 Bucket: ghe-backups
Saving .config.
Hour of day (24h format): 23
Minute: 30
$