6f52d46267
Enthält Host-Doku, MQTT/HA, Git-Setup, Power-Monitoring und GPU-Idle (pve2). Co-authored-by: Cursor <cursoragent@cursor.com>
63 lines
1.4 KiB
Markdown
63 lines
1.4 KiB
Markdown
# 04 — Backup-Konfiguration
|
|
|
|
## Ziel
|
|
|
|
Backups sollen **nicht mehr auf `local`** (System-NVMe) landen, sondern auf der **HDD `records`** (~1,6 TB frei).
|
|
|
|
## Durchgeführte Änderungen
|
|
|
|
### 1. Standard-Storage für vzdump
|
|
|
|
Datei: `/etc/vzdump.conf`
|
|
|
|
```ini
|
|
storage: records
|
|
```
|
|
|
|
Neue manuelle und geplante Backups nutzen damit standardmäßig `records`.
|
|
|
|
### 2. Backup von `local` entfernt
|
|
|
|
Datei: `/etc/pve/storage.cfg`
|
|
|
|
```ini
|
|
dir: local
|
|
path /var/lib/vz
|
|
content iso,vztmpl
|
|
```
|
|
|
|
`backup` wurde aus `content` entfernt — ein versehentliches Backup auf die System-Partition wird erschwert.
|
|
|
|
### 3. Storage `records` (unverändert, bereits korrekt)
|
|
|
|
```ini
|
|
dir: records
|
|
path /mnt/pve/records
|
|
content iso,vztmpl,backup,images,rootdir
|
|
```
|
|
|
|
## Vorhandene Backups auf local
|
|
|
|
- Es lag u. a. ein **OPNsense-Backup (~15 GB)** unter `/var/lib/vz/dump/`
|
|
- Wurde vom Benutzer **manuell gelöscht** (wird noch benötigt — ggf. neu erstellen)
|
|
|
|
### OPNsense neu sichern
|
|
|
|
```bash
|
|
vzdump 104 --storage records --mode snapshot --compress zstd
|
|
```
|
|
|
|
## Geplante Backups (Cron)
|
|
|
|
Die Datei `/etc/pve/vzdump.cron` ist derzeit **leer** (kein clusterweiter Zeitplan). Backups laufen aktuell manuell oder müssen separat im Proxmox-UI / per Cron eingerichtet werden.
|
|
|
|
## Prüfen
|
|
|
|
```bash
|
|
pvesm status
|
|
grep storage /etc/vzdump.conf
|
|
cat /etc/pve/storage.cfg
|
|
ls -lh /mnt/pve/records/dump/
|
|
ls -lh /var/lib/vz/dump/
|
|
```
|