bare metal host backup and restore

sidereus

Member
Jul 25, 2019
45
7
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.
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!