https://github.com/kitechsoftware/gcr-db-backup
database backup container
https://github.com/kitechsoftware/gcr-db-backup
Last synced: 10 months ago
JSON representation
database backup container
- Host: GitHub
- URL: https://github.com/kitechsoftware/gcr-db-backup
- Owner: KiTechSoftware
- Created: 2025-01-31T06:13:19.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2025-04-13T14:14:10.000Z (12 months ago)
- Last Synced: 2025-05-21T11:15:50.402Z (10 months ago)
- Language: Shell
- Size: 11.7 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# gcr-db-backup
`gcr-db-backup` is a GitHub Container Registry image designed to back up Docker-based PostgreSQL and MariaDB/MySQL databases. The backups are stored in the `/backup` directory.
## Environment Variables
The following environment variables are required:
```sh
DB_HOST=${DB_HOST:-db}
DB_USER=${DB_USER:-user}
DB_PASSWORD=${DB_PASSWORD:-password}
DB_NAME=${DB_NAME:-app_db}
GPG_PASSPHRASE=${GPG_PASSPHRASE}
TEAMS_WEBHOOK=${TEAMS_WEBHOOK}
BACKUP_REPO_URL=${BACKUP_REPO_URL}
```
## Pulling the Image
To pull the image, use one of the following commands:
### Docker
```sh
docker pull ghcr.io/kitechsoftware/db-backup:postgresql-debian
```
### Podman
```sh
podman pull ghcr.io/kitechsoftware/db-backup:postgresql-debian
```
## Other Image Tags
- PostgreSQL (Alpine): `ghcr.io/kitechsoftware/db-backup:postgresql-alpine`
- MariaDB (Alpine): `ghcr.io/kitechsoftware/db-backup:mariadb-alpine`
- MariaDB (Debian): `ghcr.io/kitechsoftware/db-backup:mariadb-debian`