About backups of GitHub Enterprise Server when using GitHub Actions
You can use GitHub Enterprise Server Backup Utilities to back up and restore the data and configuration for your GitHub Enterprise Server instance to a new instance. For more information, see "Configuring backups on your appliance."
However, not all the data for GitHub Actions is included in these backups. GitHub Actionsは、ワークフローの成果物とログを保存するのに外部ストレージを使用します。 このデータは、Azure blob storage、Amazon S3、MinIOなどの外部プロバイダに保存されます。 その結果、GitHub Enterprise ServerのバップアップとGitHub Enterprise ServerのHigh Availability構成は、この外部ストレージに保存されたデータに対する保護を提供せず、そのかわりにAzureやAWSといった外部ストレージのプロバイダが提供するデータ保護及びレプリケーションに依存します。
Restoring a backup of GitHub Enterprise Server when GitHub Actions is enabled
To restore a backup of your GitHub Enterprise Server instance with GitHub Actions, you must manually configure network settings and external storage on the destination instance before you restore your backup from GitHub Enterprise Server Backup Utilities.
-
Confirm that the source instance is offline.
-
Manually configure network settings on the replacement GitHub Enterprise Server instance. Network settings are excluded from the backup snapshot, and are not overwritten by
ghe-restore
. For more information, see "Configuring network settings." -
SSH into the destination instance. For more information, see "Accessing the administrative shell (SSH)."
Shell $ ssh -p 122 admin@HOSTNAME
-
Configure the destination instance to use the same external storage service for GitHub Actions as the source instance by entering one of the following commands.
-
Azure Blob Storage:
Shell ghe-config secrets.actions.storage.blob-provider "azure"
-
Amazon S3:
Shell ghe-config secrets.actions.storage.blob-provider "s3"
-
-
Configure the external storage connection by entering the following commands, replacing the placeholder values with actual values for your connection.
-
Azure Blob Storage:
Shell ghe-config secrets.actions.storage.azure.connection-string "CONNECTION STRING"
-
Amazon S3:
Shell ghe-config secrets.actions.storage.s3.bucket-name "S3 BUCKET NAME" ghe-config secrets.actions.storage.s3.service-url "S3 SERVICE URL" ghe-config secrets.actions.storage.s3.access-key-id "S3 ACCESS KEY ID" ghe-config secrets.actions.storage.s3.access-secret "S3 ACCESS SECRET"
Optionally, to force path-style addressing for S3, also enter the following command.
Shell ghe-config secrets.actions.storage.s3.force-path-style true
-
-
To prepare to enable GitHub Actions on the destination instance, enter the following command.
Shell ghe-config app.actions.enabled true
-
To apply the configuration and enable GitHub Actions to connect to your external storage provider, enter the following command.
Shell ghe-config-apply
-
After GitHub Actions is configured and enabled, to restore the rest of the data from the backup, use the
ghe-restore
command. For more information, see "Restoring a backup." -
Re-register your self-hosted runners on the destination instance. For more information, see "Adding self-hosted runners."