Separately writing backup to PBS datastore disk

elgingero

Member
Mar 15, 2021
4
1
8
47
Hi

A brief bit of background for context: -

I have setup a (very) small home environment running PVE and PBS, the latter being a VM on the former ( don't judge me :) ). I have a 2TB SATA which contains PVE boot disk, ISOs, local (for basic backups) and a local-lvm thin pool which hosts my file server data. I also have an NVMe m.2 drive which has boot drives for various VMs, including the file server, and the PBS server. Finally, I have an external USB drive, which is exposed as a PBS backup datastore. My PBS VM is backed up daily to the "local" backup area of the 2TB drive, the rest of the machines are backed up via PBS.

I'm not mirroring etc and accept that any drive failure means "invoking disaster recovery process" :) This setup will replace my old ESXi rig, and before I decommission the former I'll be doing a rehearsal of the following (no critical data on there yet). These are the scenarios: -
  • If my 2TB drive dies, I buy and stick a new one in there, install PVE, let it see the NVMe drive so it can see my VMs and start the machines (obviously more complicated than that, but that's the principle).
  • If my NVMe drive dies, I buy and install a new NVMe drive, recover my PBS VM from the local backup on the 2TB drive, then restore the rest of my machines from the PBS backup which is on the USB drive.
The bit that's missing is the custom config on the PVE host. I'm using this script : Proxmox PVE Host Config Backup Script to give me a daily tar of all the important files, but I want to off-host those, together with /var/lib/vz/template.

The easiest way I can see to do this is to scp/rsync those files from the PVE host to the PBS host, to a directory on the external USB drive which is mounted at /mnt/datastore/external-2tb.

This datastore was setup within PBS, and has vm, ct and .chunks folders which of course are managed by PBS.

So to the actual question - if I create a directory e.g. hostbackup in this folder, will this break PBS - i.e. does it expect to fully control the entire filesystem - or can I happily do this without fear that PBS will get rid?
 
Just add another directory level:

/mnt/datastore/external-2tb/pbs
/mnt/datastore/external-2tb/otherbackups

Use "pbs" for PBS repo and "otherbackups" for all those files you need to copy manually.
 
  • Like
Reactions: elgingero
Perfect thanks. When I originally setup PBS it created the datastore automatically for me so didn't know you could do that at a sub directory.
 

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!