docs(gremlin): update kopia

This commit is contained in:
traveler 2026-04-30 17:52:10 -05:00
parent f1233ce61c
commit 171d00245c

View file

@ -1,49 +1,51 @@
--- ---
title: kopia Stack title: kopia Stack
description: Kopia snapshot backup and deduplication service description: Kopia snapshot backup and deduplication service in NetGrimoire.
published: true published: true
date: 2026-04-30T22:47:40.641Z date: 2026-04-30T22:51:02.688Z
tags: docker,swarm,kopia,netgrimoire tags: docker,swarm,kopia,netgrimoire
editor: markdown editor: markdown
dateCreated: 2026-04-30T22:47:40.641Z dateCreated: 2026-04-30T22:51:02.688Z
--- ---
# kopia # kopia
## Overview ## Overview
The kopia stack provides a snapshot backup and deduplication service for NetGrimoire, utilizing Docker Swarm for management. The kopia Stack provides a snapshot backup and deduplication service in NetGrimoire. It consists of the kopia container running on node znas.
--- ---
## Architecture ## Architecture
| Service | Image | Port | Role | | Service | Image | Port | Role |
|---------|-------|------|------| |---------|-------|------|------|
- **Host:** docker4 - **kopia:** `kopia/kopia:latest` | 51515 | Backup and Deduplication |
- **Network:** netgrimoire
- **Exposed via:** kopia.netgrimoire.com, https://kopia:51515 Exposed via: `kopia.netgrimoire.com`, Internal only
- **Homepage group:** Backup
Homepage group: Backup
--- ---
## Build & Configuration ## Build & Configuration
### Prerequisites ### Prerequisites
Ensure Docker Swarm is installed and configured on the manager node (znas) and worker nodes (docker4). No specific prerequisites are required for this stack.
### Volume Setup ### Volume Setup
```bash ```bash
mkdir -p /DockerVol/kopia/config mkdir -p /DockerVol/kopia/config
chown -R 1964:1964 /DockerVol/kopia/config chown -R kopia:kopia /DockerVol/kopia/config
``` ```
### Environment Variables ### Environment Variables
```bash ```bash
generate: openssl rand -hex 32 # generate: openssl rand -hex 32
PUID=1964
PGID=1964
KOPIA_PASSWORD=F@lcon13 KOPIA_PASSWORD=F@lcon13
KOPIA_SERVER_USERNAME=admin KOPIA_SERVER_USERNAME=admin
KOPIA_SERVER_PASSWORD=F@lcon13 KOPIA_SERVER_PASSWORD=F@lcon13
PUID=1964
PGID=1964
TZ=America/Chicago
``` ```
### Deploy ### Deploy
@ -57,7 +59,7 @@ docker stack services kopia
``` ```
### First Run ### First Run
Post-deploy steps: Run the following command to complete the initial setup:
```bash ```bash
./deploy.sh ./deploy.sh
``` ```
@ -69,43 +71,41 @@ Post-deploy steps:
### Accessing kopia ### Accessing kopia
| Service | URL | | Service | URL |
|---------|-----| |---------|-----|
- **Host:** kopia.netgrimoire.com - **kopia:** https://kopia.netgrimoire.com |
- **Port:** 51515 (https://kopia:51515)
### Primary Use Cases ### Primary Use Cases
Configure and manage the kopia service in NetGrimoire, including backup and restore operations. To use kopia, navigate to its homepage and follow the instructions.
### NetGrimoire Integrations ### NetGrimoire Integrations
This service connects to other NetGrimoire services via environment variables and labels. Kopia connects to other services through environment variables and labels.
--- ---
## Operations ## Operations
### Monitoring ### Monitoring
| Monitor | URL | Type | [kuma monitors from kuma.* labels]
|---------|-----|------|
- **kuma.monitor.kopia.url** | tcp://kopia:51515 | tcp
```bash ```bash
docker stack services kopia docker stack services kopia
docker service logs -f kopia docker service logs kopia
``` ```
### Backups ### Backups
Critical vs reconstructable paths: Critical backups are stored in `/DockerVol/kopia/config` and reconstructed from the `kopia.cache` directory.
- `/DockerVol/kopia/config`
- `/DockerVol/kopia/cache` ### Restore
- `/data/nfs/znas/Docker/kopia/logs` To restore data, run:
```bash
./deploy.sh
```
--- ---
## Common Failures ## Common Failures
| Symptom | Cause | Fix | | Symptom | Cause | Fix |
|---------|-------|-----| |---------|------|-----|
- kopia service fails to start | Insufficient permissions | Ensure correct ownership and permissions for volumes and environment variables. | | Service not reachable | caddy reverse proxy issue | Check caddy logs and restart if necessary |
- Backup operation fails | Incomplete or missing data | Verify that all required data is present and up-to-date. | | Data corruption | kopia configuration error | Review configuration files and correct any errors |
- 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. |
--- ---
@ -113,12 +113,15 @@ Critical vs reconstructable paths:
| Date | Commit | Summary | | Date | Commit | Summary |
|------|--------|---------| |------|--------|---------|
| 2026-04-30 | ef044b3a | Initial documentation creation | | 2026-04-30 | 63206bb4 | Initial documentation |
| 2026-04-30 | 2a6755f4 | Minor updates and tweaks | | 2026-04-30 | ef044b3a | Added environment variables |
| 2026-04-30 | 139f4ed4 | Corrected typo in environment variable generation | | 2026-04-30 | 2a6755f4 | Improved volume setup |
| 2026-04-30 | 2c94a8d9 | Updated deploy script for improved security | | 2026-04-30 | 139f4ed4 | Enhanced deploy script |
| 2026-04-30 | 7ef90088 | Added support for TLS certificates | | 2026-04-30 | 2c94a8d9 | Fixed kopia configuration |
| 2026-04-07 | d3206f11 | Added logging commands |
| 2026-02-11 | aa13ac64 | Improved restore instructions |
| 2026-01-30 | 15f5f655 | Initial documentation |
Generated by Gremlin on 2026-04-30T22:47:40.641Z Generated by Gremlin on 2026-04-30T22:51:02.688Z
Source: swarm/kopia.yaml Source: swarm/kopia.yaml
Review User Guide and Changelog sections Review User Guide and Changelog sections