Skip to content

Commit a846dc8

Browse files
authored
Add external storage configuration details (#23460)
1 parent 0dfe6e2 commit a846dc8

1 file changed

Lines changed: 28 additions & 2 deletions

File tree

content/admin/github-actions/advanced-configuration-and-troubleshooting/backing-up-and-restoring-github-enterprise-server-with-github-actions-enabled.md

Lines changed: 28 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,35 @@ This is an overview of the steps required to restore {% data variables.product.p
2121

2222
1. Confirm that the original appliance is offline.
2323
1. Manually configure network settings on the replacement {% data variables.product.prodname_ghe_server %} appliance. Network settings are excluded from the backup snapshot, and are not overwritten by `ghe-restore`.
24-
1. Configure the replacement appliance to use the same {% data variables.product.prodname_actions %} external storage configuration as the original appliance.
24+
1. To configure the replacement appliance to use the same {% data variables.product.prodname_actions %} external storage configuration as the original appliance, from the new appliance, set the required parameters with `ghe-config` command.
25+
26+
- Azure Blob Storage
27+
```shell
28+
ghe-config secrets.actions.storage.blob-provider "azure"
29+
ghe-config secrets.actions.storage.azure.connection-string "_Connection_String_"
30+
```
31+
- Amazon S3
32+
```shell
33+
ghe-config secrets.actions.storage.blob-provider "s3"
34+
ghe-config secrets.actions.storage.s3.bucket-name "_S3_Bucket_Name"
35+
ghe-config secrets.actions.storage.s3.service-url "_S3_Service_URL_"
36+
ghe-config secrets.actions.storage.s3.access-key-id "_S3_Access_Key_ID_"
37+
ghe-config secrets.actions.storage.s3.access-secret "_S3_Access_Secret_"
38+
```
39+
- Optionally, to enable S3 force path style, enter the following command:
40+
```shell
41+
ghe-config secrets.actions.storage.s3.force-path-style true
42+
```
43+
44+
2545
1. Enable {% data variables.product.prodname_actions %} on the replacement appliance. This will connect the replacement appliance to the same external storage for {% data variables.product.prodname_actions %}.
26-
1. After {% data variables.product.prodname_actions %} is configured with the external storage provider, use the `ghe-restore` command to restore the rest of the data from the backup. For more information, see "[Restoring a backup](/admin/configuration/configuring-backups-on-your-appliance#restoring-a-backup)."
46+
47+
```shell
48+
ghe-config app.actions.enabled true
49+
ghe-config-apply
50+
```
51+
52+
1. After {% data variables.product.prodname_actions %} is configured and enabled, use the `ghe-restore` command to restore the rest of the data from the backup. For more information, see "[Restoring a backup](/admin/configuration/configuring-backups-on-your-appliance#restoring-a-backup)."
2753
1. Re-register your self-hosted runners on the replacement appliance. For more information, see [Adding self-hosted runners](/actions/hosting-your-own-runners/adding-self-hosted-runners).
2854

2955
For more information on backing up and restoring {% data variables.product.prodname_ghe_server %}, see "[Configuring backups on your appliance](/admin/configuration/configuring-backups-on-your-appliance)."

0 commit comments

Comments
 (0)