Backing up and restoring a ZFS raw image to pbs

DynFi User

Renowned Member
Apr 18, 2016
155
19
83
50
dynfi.com
Hello,

I am migrating a big server to a new architecture, transitioning from ZFS based cluster to Ceph cluster.
We are using pbs as an intermediary backup / restore stack. server where data / VM to be migrated is located is headless.


All VMs have been migrated but one, which remains on the old server (ZFS).

I need to :
  1. backup the VM using proxmox-backup-client using cli
  2. make sure the VM is complete and includes disk, config, and everything needed for a smooth restore
  3. restore the image from the backup (if possibe using embedded backup / restore from my PBS server

I don't exactly know how manually create an archive that'll be the same as the archive created using the PVE GUI in the backup section ?

Might look like this :

# proxmox-backup-client backup --include-dev /dev/rpool/data/vm-7000-disk-1 --include-dev vm-7000-disk-1-part1 --include-dev vm-7000-disk-1-part2 backup@pb@backupsrv:MyStore


Questions are :

- Is the synthax ok for a ZFS raw device ?
- How do I include the config file in the archive so that It will be all embedded
- Is there a more straightforward way of backing things up with PBS (using CLI - no GUI available on the server) ?
>>>> I am thinking of a command where we will indicate the config file and It will be parsed for backup ?


Thanks for helping
 
you can use the the CLI (vzdump), API or web GUI to trigger a backup - running proxmox-backup-client manually for VMs won't work. the web GUI is also available for headless systems obviously - you just need to be able to connect to port 8006 of your PVE server from some other machine ;)
 
Thanks for your answer…

I have managed using an SSH + port forward to access the GUI, which is way simpler to solve my problem:

ssh -L 8006:127.0.0.1:Destination_IP_Of_Old_PVE:8006 root@mypbs_system

Then just https://127.0.0.1:8006 and you are done

;-)