Initial commit.

This commit is contained in:
root
2025-10-12 13:23:48 +02:00
commit ca2b6731e0
5 changed files with 863 additions and 0 deletions

View File

@@ -0,0 +1,31 @@
# ===== vm-full-backup.conf =====
VM_NAME="WinServer2025"
LV_ORIG="/dev/VG-Windows-Server/WinSystem"
# 1 TiB LV: Snapshot-Startwert 150 GiB (bei hoher Last ggf. erhöhen)
SNAP_SIZE="150G"
# Zielordner (kann NFS sein)
BACKUP_DIR="/data/backup/${VM_NAME}"
# Optional: sicherstellen, dass BACKUP_DIR gemountet ist (z.B. NFS)
REQUIRE_MOUNTED=0 # 1 = BACKUP_DIR muss gemountet sein
REQUIRE_NFS_TYPE=0 # 1 = BACKUP_DIR muss nfs/nfs4 Typ sein
# Dateiprefix für Backup/Logs/XML
FILE_PREFIX="WinSystem_full"
# Aufbewahrung
KEEP=2
# Speed-orientiert:
#
# DD_BS="4M" # Größe der von DD auf einmal geschriebenen Blöcke
# COMPRESS='cat' # keine Kompression (sehr schnell, aber riesig)
#
DD_BS="4M"
COMPRESS='cat'
# QUIET wird bei Cron/kein TTY automatisch 1
# QUIET=0

View File

@@ -0,0 +1,26 @@
# ===== vm-full-restore.conf =====
# libvirt VM-Name (zum Stoppen vor Restore)
VM_NAME="WinServer2025"
# Ziel-Blockdevice (wird überschrieben!)
LV_TARGET="/dev/VG-Windows-Server/WinSystem"
# Speicherort der Backups (muss die .img.<ext> + .sha256 + .xml enthalten)
BACKUP_DIR="/data/backup/${VM_NAME}"
# Dateiprefix der Backups (muss zum Backup-Skript passen)
FILE_PREFIX="WinSystem_full"
# dd Blocksize (Performance)
DD_BS="4M"
# SHA-Verifikation standardmäßig an (1) oder aus (0)
VERIFY_SHA=0
# Quiet wird automatisch 1 ohne TTY
# QUIET=0
# NFS/Mount-Schutz
REQUIRE_MOUNTED=0 # 1: BACKUP_DIR muss gemountet sein
REQUIRE_NFS_TYPE=0 # 1: FSTYPE muss nfs/nfs4 sein