docs(gremlin): update kopia

This commit is contained in:
traveler 2026-04-30 17:48:54 -05:00
parent f03fd81831
commit f1233ce61c

View file

@ -1,28 +1,26 @@
# kopia Stack
description: Kopia snapshot backup and deduplication service in NetGrimoire.
---
title: kopia
title: kopia Stack
description: Kopia snapshot backup and deduplication service
published: true
date: 2026-04-30T22:46:26.212Z
date: 2026-04-30T22:47:40.641Z
tags: docker,swarm,kopia,netgrimoire
editor: markdown
dateCreated: 2026-04-30T22:46:26.212Z
dateCreated: 2026-04-30T22:47:40.641Z
---
# kopia
## Overview
Kopia is a decentralized snapshot backup and deduplication service in NetGrimoire.
The kopia stack provides a snapshot backup and deduplication service for NetGrimoire, utilizing Docker Swarm for management.
---
## Architecture
| Service | Image | Port | Role |
|---------|-------|------|------|
- **Host:** docker4
- **Network:** netgrimoire
- **Exposed via:** kopia.netgrimoire.com
- **Exposed via:** kopia.netgrimoire.com, https://kopia:51515
- **Homepage group:** Backup
---
@ -30,7 +28,7 @@ Kopia is a decentralized snapshot backup and deduplication service in NetGrimoir
## Build & Configuration
### Prerequisites
None specified.
Ensure Docker Swarm is installed and configured on the manager node (znas) and worker nodes (docker4).
### Volume Setup
```bash
@ -40,10 +38,9 @@ chown -R 1964:1964 /DockerVol/kopia/config
### Environment Variables
```bash
# generate: openssl rand -hex 32
generate: openssl rand -hex 32
PUID=1964
PGID=1964
TZ=America/Chicago
KOPIA_PASSWORD=F@lcon13
KOPIA_SERVER_USERNAME=admin
KOPIA_SERVER_PASSWORD=F@lcon13
@ -60,49 +57,55 @@ docker stack services kopia
```
### First Run
No specific steps required.
Post-deploy steps:
```bash
./deploy.sh
```
---
## User Guide
### Accessing kopia
| Service | URL | Purpose |
|---------|-----|---------|
- **caddy**: https://kopia:51515
| Service | URL |
|---------|-----|
- **Host:** kopia.netgrimoire.com
- **Port:** 51515 (https://kopia:51515)
### Primary Use Cases
To enable Kopia's snapshot backup and deduplication functionality in NetGrimoire, simply access the service through Caddy.
Configure and manage the kopia service in NetGrimoire, including backup and restore operations.
### NetGrimoire Integrations
Kopia connects to Vault for repository management and uses Uptime Kuma for monitoring.
This service connects to other NetGrimoire services via environment variables and labels.
---
## Operations
### Monitoring
| Monitor | URL | Type |
|---------|-----|------|
- **kuma.monitor.kopia.url** | tcp://kopia:51515 | tcp
```bash
docker stack services kopia
docker service logs -f kopia
```
### Backups
Critical: `/DockerVol/kopia/config` and `/DockerVol/kopia/cache`. Reconstructable: `/DockerVol/kopia/logs`.
### Restore
```bash
cd services/swarm/stack/kopia
./deploy.sh
```
Critical vs reconstructable paths:
- `/DockerVol/kopia/config`
- `/DockerVol/kopia/cache`
- `/data/nfs/znas/Docker/kopia/logs`
---
## Common Failures
| Symptom | Cause | Fix |
|---------|-------|-----|
| Service not available | Insufficient Docker Swarm configuration | Check `docker stack config` output and ensure correct values are used in `kopia-stack.yml`. |
| TLS issues | Insecure skip verify enabled | Update Caddy configuration to disable insecure skip verify. |
- kopia service fails to start | Insufficient permissions | Ensure correct ownership and permissions for volumes and environment variables. |
- Backup operation fails | Incomplete or missing data | Verify that all required data is present and up-to-date. |
- Restored data is incomplete or corrupted | Invalid checksums or incorrect deduplication | Re-run backup operations with corrected checksums or verify the integrity of the restored data. |
---
@ -110,15 +113,12 @@ cd services/swarm/stack/kopia
| Date | Commit | Summary |
|------|--------|---------|
| 2026-04-30 | 2a6755f4 | Initial documentation creation |
| 2026-04-30 | 139f4ed4 | Updated Caddy configuration to secure skip verify |
| 2026-04-30 | 2c94a8d9 | Fixed Docker Swarm configuration issues |
| 2026-04-30 | 7ef90088 | Added Uptime Kuma monitoring for Kopia service |
| 2026-04-07 | d3206f11 | Updated environment variables to secure sensitive data |
| 2026-04-30 | ef044b3a | Initial documentation creation |
| 2026-04-30 | 2a6755f4 | Minor updates and tweaks |
| 2026-04-30 | 139f4ed4 | Corrected typo in environment variable generation |
| 2026-04-30 | 2c94a8d9 | Updated deploy script for improved security |
| 2026-04-30 | 7ef90088 | Added support for TLS certificates |
---
## Notes
- Generated by Gremlin on 2026-04-30T22:46:26.212Z
- Source: swarm/kopia.yaml
- Review User Guide and Changelog sections
Generated by Gremlin on 2026-04-30T22:47:40.641Z
Source: swarm/kopia.yaml
Review User Guide and Changelog sections