You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 145e7b2
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: README.md
+31-3Lines changed: 31 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,7 +5,9 @@
5
5
6
6
Back up the Git code in your personal GitHub accounts and organizations to DigitalOcean
7
7
Spaces, so you can recover when GitHub is unavailable or an account is compromised.
8
-
**The default installation is Docker Compose deployed through Coolify.**
8
+
**The default installation is Docker Compose deployed through Coolify on an Ubuntu 24.04 LTS
9
+
or newer supported Ubuntu server with an x86_64 (Intel/AMD 64-bit) CPU.**
10
+
Compose explicitly builds and runs `linux/amd64`; no Raspberry Pi OS or ARM hardware is required.
9
11
10
12
Install one GitHub App with **All repositories** on each account and organization. New
11
13
repositories are discovered automatically. The worker checks hourly and uploads a new
@@ -64,8 +66,8 @@ Record the bucket name and its region, e.g. `fra1` (Frankfurt) or `ams3` (Amster
64
66
5.**Disable automatic deployments, preview deployments, and overlapping/rolling replacements.**
65
67
A compromised GitHub account must not be able to deploy replacement worker code with Spaces secrets.
66
68
6. In **Environment Variables**, set the six required values below in the production environment.
67
-
Make them available at **runtime**, disable**build-time**exposure of credentials, and keep
68
-
secret values masked. See the [complete deployment guide](docs/COOLIFY.md) for UI details.
69
+
For the current Compose file, enable**Buildtime and Runtime**on all six required values
70
+
so Coolify can interpolate Compose during its build command. Keep secret values masked. See the [complete deployment guide](docs/COOLIFY.md) for UI details.
69
71
7. Save and deploy. Do not add a Coolify scheduled task: the container includes its own scheduler.
70
72
71
73
### 4. Set the environment
@@ -85,6 +87,32 @@ SPACES_BUCKET=company-files
85
87
The Spaces credentials are a Spaces access-key pair, not a DigitalOcean API token.
86
88
`SPACES_BUCKET` is just the bucket name, without a URL or folder.
87
89
90
+
### Where to find each required value
91
+
92
+
| Environment variable | Value to enter | Where to find it |
93
+
|---|---|---|
94
+
|`GITHUB_APP_ID`| Numeric App ID | GitHub **Settings → Developer settings → GitHub Apps → your App → General**; copy **App ID**, not Client ID or installation ID |
95
+
|`GITHUB_APP_OWNERS`| User/org login names, comma-separated | The account and organization names in GitHub URLs, e.g. `github.com/alice` and `github.com/example-team`; install the App on each first |
96
+
|`GITHUB_APP_PRIVATE_KEY_BASE64`| Single-line base64 of your downloaded PEM | Your App's **General → Private keys → Generate a private key**, then run the base64 command above locally |
|`AWS_SECRET_ACCESS_KEY`|**Secret belonging to that same Spaces key**| Copy the secret when creating the Spaces key; if lost, create a replacement pair and update both values |
99
+
|`SPACES_BUCKET`| Existing bucket name, e.g. `company-files`| DigitalOcean **Spaces Object Storage → Buckets**; open the destination bucket |
100
+
101
+
**Why the `AWS_` names?** Spaces implements the S3 API, and this project uses boto3's standard
102
+
credential environment variables. Put **DigitalOcean** credentials in them: no AWS account,
103
+
AWS IAM key, or AWS bill is involved. `SPACES_BUCKET` and `SPACES_REGION` configure this
104
+
application; they are not credential-provider variable names. Keep the exact names shown—
105
+
renaming them to `SPACES_KEY`/`SPACES_SECRET` is not supported by this configuration.
106
+
See [DigitalOcean's S3 SDK guide](https://docs.digitalocean.com/products/spaces/reference/aws-sdks/)
107
+
and [Spaces key creation](https://docs.digitalocean.com/products/spaces/how-to/manage-access/).
108
+
109
+
Use a separate Spaces key for this worker with access to the intended bucket and the required
110
+
read/write/delete operations. Do not paste a DigitalOcean personal API token, the key's display
111
+
name, an endpoint URL, or the GitHub App key into either Spaces credential field.
112
+
For example, the bucket origin `company-files.ams3.digitaloceanspaces.com` means
113
+
`SPACES_BUCKET=company-files` and `SPACES_REGION=ams3`. Keep `SPACES_PREFIX=github-backup`
114
+
unless you want a different folder; that prefix is your choice, not a secret to obtain elsewhere.
115
+
88
116
Optional values already have working defaults. **Change the region if your bucket is not in Frankfurt:**
Trivy container gates and automated release provenance provide additional supply-chain controls.
170
170
171
-
GitHub rate limits and upstream retention still apply. Lower `workers` for slow NAS devices, small Raspberry Pis, or constrained enterprise instances.
171
+
GitHub rate limits and upstream retention still apply. Lower `workers` for slow NAS devices, resource-constrained servers, or constrained enterprise instances.
For Docker, pass this file with `--env-file`. Never commit a token, store it in TOML, pass it as a command argument, bake it into an image, or paste it into an issue. Rotate immediately after suspected exposure.
267
267
268
-
## Install on Debian, Ubuntu, or Raspberry Pi OS
268
+
## Install on Ubuntu or Debian
269
269
270
270
Install a published version for production instead of an arbitrary `main` revision. The examples
271
271
use `1.1.0`; replace it with the current version shown on the
Set `destination = "/srv/github-backup"` and `cache_dir = "/var/cache/github-backup"` in `/etc/github-backup/config.toml`. On Raspberry Pi, prefer an SSD to an SD card and reduce `workers` to `1` or `2` when resources are constrained.
315
+
Set `destination = "/srv/github-backup"` and `cache_dir = "/var/cache/github-backup"` in `/etc/github-backup/config.toml`. Prefer SSD storage and reduce `workers` to `1` when resources are constrained.
316
316
317
317
## Run with Docker
318
318
319
-
Install Docker using its official [Ubuntu](https://docs.docker.com/engine/install/ubuntu/), [Debian](https://docs.docker.com/engine/install/debian/), or [Raspberry Pi OS](https://docs.docker.com/engine/install/raspberry-pi-os/) guide. A simple distribution-package setup is:
319
+
Install Docker Engine and the Compose plugin using the official [Ubuntu guide](https://docs.docker.com/engine/install/ubuntu/) on your Ubuntu 24.04+ x86_64 server. A simple distribution-package setup is:
320
320
321
321
```bash
322
322
sudo apt update
@@ -327,7 +327,7 @@ sudo docker version
327
327
328
328
The Docker group is root-equivalent; examples use `sudo docker` instead of adding users to it.
329
329
330
-
For a published release, prefer the signed multi-architecture GHCR image and pin its digest in
330
+
For a published release, prefer the signed x86_64 (`linux/amd64`) GHCR image and pin its digest in
331
331
controlled deployments:
332
332
333
333
```bash
@@ -562,7 +562,7 @@ Inspect `coverage.json` in optional archives. `check --include all` checks the c
562
562
563
563
## Automate backups with systemd
564
564
565
-
systemd is recommended on Debian/Ubuntu/Raspberry Pi OS for protected secrets, missed-run recovery, exit monitoring, and journald logs. This example assumes the production paths above.
565
+
systemd is recommended on Ubuntu/Debian servers for protected secrets, missed-run recovery, exit monitoring, and journald logs. This example assumes the production paths above.
566
566
567
567
Create the service:
568
568
@@ -781,7 +781,7 @@ is reviewed and merged, the release workflow:
781
781
fixable High/Critical vulnerabilities;
782
782
4. creates wheel and source archives, an SPDX JSON SBOM, and `SHA256SUMS`;
783
783
5. records GitHub/Sigstore provenance attestations;
784
-
6. publishes `linux/amd64`and `linux/arm64` images with OCI provenance and SBOMs to GHCR;
784
+
6. publishes the `linux/amd64`image with OCI provenance and SBOMs to GHCR;
785
785
7. publishes the GitHub release only after every artifact job succeeds.
786
786
787
787
Verify downloaded files from one release directory:
0 commit comments