Get up and running.
Everything you need to start exploring Vault Backup on infrastructure you control.
Start locally with Docker Compose
You'll need Docker with Compose, Git, OpenSSL and outbound access. The included PostgreSQL container stores data in a Docker volume and is intended for evaluation.
git clone https://github.com/vaultpulse-cloud/vault-backup.git
cd vault-backup
cp .env.example .env
Generate three independent secrets, then paste them into the corresponding fields in .env. Use the generated hex value for the database password to avoid URL-escaping issues.
openssl rand -hex 32 # POSTGRES_PASSWORD
openssl rand -hex 32 # JWT_SECRET
openssl rand -base64 32 # CREDENTIALS_ENCRYPTION_KEY
Keep the file private and never commit it. The encryption key must remain stable: back it up securely with your database backups. Changing it without a separate migration can make stored credentials unreadable.
docker compose up --build -d
docker compose logs -f app
Open localhost:8080, register, and create a workspace. The Compose port binds to localhost by default. Configure a GitHub App and storage before making your first backup. For public access, use HTTPS and restrict access; public registration is enabled.
Full quick start on GitHub ↗Configure your GitHub App
Create your own GitHub App and set its setup URL to https://your-host/api/v1/github/callback and webhook URL to https://your-host/api/v1/webhooks/github. Use a random webhook secret and subscribe to Installation events.
Repository permissions required: Contents, Workflows and Administration (read and write), plus Metadata (read). Set GITHUB_APP_ID, GITHUB_APP_SLUG, GITHUB_APP_PRIVATE_KEY and GITHUB_WEBHOOK_SECRET in your deployment. OAuth sign-in is configured separately.
Connect your GitHub account in the dashboard, configure and test S3 or Azure Blob Storage, select repositories, and test both backup and restore.
GitHub App setup details ↗Choose your environment
Build your own container image from the repository. The deployment guides cover prerequisites, secrets, networking and operations.
Run only one application replica. Background workers and migrations are not designed for concurrent replicas; deployments can cause downtime.
Configuration essentials
| Variable | Purpose |
|---|---|
DATABASE_URL | PostgreSQL connection; use TLS for remote databases. |
JWT_SECRET | Unique random signing secret, at least 32 characters. |
CREDENTIALS_ENCRYPTION_KEY | Base64-encoded 32-byte encryption key; keep and back it up securely. |
FRONTEND_URL / BACKEND_URL | Public origin for redirects and callbacks. |
GITHUB_APP_* | GitHub App ID, slug, private key and webhook secret. |
SMTP_* | Optional email delivery; required for invitations. |
Test your recovery plan
Restores include Git branches, tags, LFS objects and the default branch. Repository settings, secrets, branch protections, issues and pull requests are not restored. A personal GitHub destination must already be an empty repository accessible to your App. Restored workflow files may run; review destination Actions settings.
Keep separate backups of PostgreSQL and the encryption key. Restrict access to your instance, use TLS and least-privilege storage credentials, and test restores regularly. The application health endpoint only indicates HTTP availability, not end-to-end backup readiness.
Help shape the project
Explore the code, report issues and propose changes. Please do not include credentials or customer data in public reports. For sensitive security issues, avoid public disclosure until a private reporting channel is established.
