Proxmox Backup Client

Um ein Backup mit dem Proxmox Backup Client zu erstellen. Braucht es nicht viel

PBS Server = your-pbs-server
PBS Server Datastore = your-datastore
PBS Namespace (Empfohlen) = your-pbs-namespace

PBS User = backup@pbs
PBS User Passwort = backup@pbs

Was man backupen will. kann man auch ganz bequem in einzelne Jobs hinterlegen wie zb.
root.pxar:/
etc-pve.pxar:/etc/pve

Das wäre einmal alles was im Mountpoint / liegt, ohne das weitere Mountpoints mit gebackupt werden.
Und dann nochmal der Separate Mountpoint /etc/pve

proxmox-backup-client backup root.pxar:/ etc-pve.pxar:/etc/pve --change-detection-mode=metadata --repository your-pbs-user@pam@your-pbs-server:your-datastore --ns your-pbs-namespace --backup-type host

Tägliches Automatisches Backup

Dazu erstellen wir ein paar Files.

Proxmox Backup Environment File

nano /etc/default/proxmox-backup
PBS_REPOSITORY=your-pbs-user@pam@your-pbs-server:your-datastore
PBS_NAMESPACE=your-pbs-namespace
PBS_PASSWORD="your-pbs-password"
PBS_FINGERPRINT="your-server-fingerprint"

Proxmox Backup Service und Timer anlegen

Backup Service

nano /etc/systemd/system/proxmox-backup.service
[Unit]
Description=Proxmox Host Backup
[Service]
Type=simple
EnvironmentFile=/etc/default/proxmox-backup
ExecStart=/usr/bin/proxmox-backup-client backup root.pxar:/ etc-pve.pxar:/etc/pve --change-detection-mode=metadata --repository ${PBS_REPOSITORY} --ns ${PBS_NAMESPACE} --backup-type host
StandardOutput=journal
StandardError=journal

Backup Timer

nano /etc/systemd/system/proxmox-backup.timer
[Unit]
Description=Daily Backup
[Timer]
OnCalendar=daily
Persistent=true
[Install]
WantedBy=timers.target

Deamon Reload und Timer Aktivieren

systemctl daemon-reload
systemctl enable --now proxmox-backup.timer

Backup manuell Starten

systemctl start proxmox-backup.service

Status anschauen

systemctl status proxmox-backup.service

Schreibe einen Kommentar

Deine E-Mail-Adresse wird nicht veröffentlicht. Erforderliche Felder sind mit * markiert

*