bare metal host backup and restore

sidereus

Member
Jul 25, 2019
45
8
13
54
How to do a bare metal live host backup using Proxmox backup client and then restore it from this backup like a Clonezilla?
 
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.
 
Last edited:
How to do a bare metal live host backup using Proxmox backup client
I try to do the same... I am not good in scripting but maybe this can help you:
Code:
#!/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.

Hello I wonder if this is possible to bare metal Proxmox VE OS on Proxmox Backup Server?
 
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.
 
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.
For everyone coming here to get the answer, it's the last paragraph in the already mentioned reference documentation:

Code:
backup sda.img:/dev/sda

The name of the entry is directly implied by the hostname. If you booted up from a live medium, the hostname is most probably not correct, so you can override it with

Code:
--backup-id <hostname>

FQDN or shortname, as you like.