I try to do the same... I am not good in scripting but maybe this can help you:How to do a bare metal live host backup using Proxmox backup client
#!/bin/bash
# tar-backup
PATH=/tmp
NOW=$(/bin/date +%Y%m%d-%H%M%S)
FQDN=$(/bin/hostname -f)
/bin/mkdir -p $PATH/$NOW && cd $PATH/$NOW
/bin/tar -cvf $PATH/$NOW/$NOW-$FQDN.tar /root/* /etc/* /var/lib/pve-cluster/* /var/spool/cron/* /usr/share/kvm/*
# pbs-backup
PBS_PASSWORD='my-password'
PBS_FINGERPRINT='my-fingerprint'
PBS_REPOSITORY='backup@pbs@pbs-hostname:pbs-storagename'
export PBS_PASSWORD
export PBS_FINGERPRINT
export PBS_REPOSITORY
/usr/bin/proxmox-backup-client backup root.pxar:$PATH/$NOW/ --keyfile /path/to/my/keyfile.enc
# cleanup
/bin/rm -rf $PATH/$NOW
exit 0
Hi, the section about creating backups with Proxmox Backup Client of the Proxmox Backup Server documentation contains all current possibilities https://pbs.proxmox.com/docs/backup-client.html#creating-backups
It is not possible to create a clone of a whole Proxmox VE installation running bare-metal using Proxmox Backup client and then restore it with a single click in some restore ISO, if that's what you mean.
For everyone coming here to get the answer, it's the last paragraph in the already mentioned reference documentation:Jup, you can use the proxmox-backup-client to create blocklevel backups of entire disks and send/restore them to to/from your PBS.
But best you boot into a Debian installed on a USB stick first and run you proxmox-backup-client script from there, so the disks PVE uses aren't mounted when backing them up.
backup sda.img:/dev/sda
--backup-id <hostname>
We use essential cookies to make this site work, and optional cookies to enhance your experience.