Skip to content

GitHub Enterprise Backup Utilities run via GitHub Actions

Notifications You must be signed in to change notification settings

djdefi/backup-utils-action

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 

Repository files navigation

GitHub Enterprise Server backup-utils Action

GitHub Enterprise Server Backup Utilities running in GitHub Actions.

Example workflow

Save the workflow as: .github/workflows/ghes-backup-utils.yml in your repository:

name: 'GitHub Enterprise Server Backup and Restore Workflow'
on:

  workflow_dispatch:
    inputs:
      ghe-hostname:
        description: 'GitHub Enterprise Hostname'
        required: true
        default: 'github.example.com'
      verbose:
        description: 'Verbose output'
        required: false
        default: 'true'
      restore:
        description: 'Restore from backup'
        required: false
        default: 'false'

  schedule:
    # Hourly
    - cron: '0 * * * *'
  
jobs:

  backup:
    runs-on: ubuntu-latest
    steps:
      - name: Backup GitHub Enterprise
        env:
          SCHEDULED_HOSTNAME: 'github.example.com'
        uses: djdefi/backup-utils-action@main
        with:
          ghe-hostname: ${{ github.event.inputs.ghe-hostname || env.SCHEDULED_HOSTNAME }}
          verbose: ${{ github.event.inputs.verbose }}
          restore: ${{ github.event.inputs.restore }}
          ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }}

Running

Run via workflow dispatch, providing the hostname of the appliance to backup.

Restoring

  1. Set restore = true in the workflow dispatch along with a target hostname or IP.
  2. Not fully implemented - Coming soon!

Customization of backup-utils configuration options

Coming soon!

Multiple snapshots

Coming soon!

Self-hosted runners

Coming soon!

About

GitHub Enterprise Backup Utilities run via GitHub Actions

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published