I'm running Nextcloud and a few other things within an Ubuntu VM
For a long time, I had 3 hdd passed through to the vm and used them in a raidz1 to store the nextcloud data, with the vm itself having its os installed on a zfs managed by pve
I've been uncomfortable about the fact that the data storage had no backups, so yesterday I bit the bullet and rsynced the data zpool to a new virtual hard disk on a temporary hdd, installed pbs and carried out a full backup, made a new zfs pool on pve from the existing hdds and moved the storage.
Today I've been backing up everything else end of course I managed to break the ubuntu vm so I thought now was a great time to put pbs to the test. I wasn't too concerned because I have the data itself backed up on the pcs/phones that sync to it, and pbs, and the virtual hard drive on the new zfs pool and the virtual hard drive on the temporary disk so it was probably the best time for it to happen.
But now I've discovered a flaw in my plan. Restoring the vm now means I have to restore not only the 40GB os storage, but also the 3.5TB data storage.
That 3.5TB will also be expanded in future to 6TB or 8TB when I get some larger disks for the new backup server.
I'm currently trying out the live restore function which seems like some kind of witchcraft given I seem to already have mostly full functionality with only a fraction of the restore complete, but I'd prefer to not have to stress the disks by having to do a full restore when I only need to restore the os storage drive and not the data drive.
The vm originally started out as a bare metal server and the only times I've ever needed to restore the data drive is when I'm moving it, but the OS has broken a few times, particularly during version upgrades and I usually create a second vm I can work on while I'm home to get things up and going again, while leaving the working version intact and ready to spin up if I'm going out, while migrating the data storage between them.
Is there any way to exclude the data storage from the actual vm backup (by unchecking the backup box within the storage configuration) but push that hard disk image to pbs on its own so it's still getting backed up every day but doesn't have to be restored with the vm?
For a long time, I had 3 hdd passed through to the vm and used them in a raidz1 to store the nextcloud data, with the vm itself having its os installed on a zfs managed by pve
I've been uncomfortable about the fact that the data storage had no backups, so yesterday I bit the bullet and rsynced the data zpool to a new virtual hard disk on a temporary hdd, installed pbs and carried out a full backup, made a new zfs pool on pve from the existing hdds and moved the storage.
Today I've been backing up everything else end of course I managed to break the ubuntu vm so I thought now was a great time to put pbs to the test. I wasn't too concerned because I have the data itself backed up on the pcs/phones that sync to it, and pbs, and the virtual hard drive on the new zfs pool and the virtual hard drive on the temporary disk so it was probably the best time for it to happen.
But now I've discovered a flaw in my plan. Restoring the vm now means I have to restore not only the 40GB os storage, but also the 3.5TB data storage.
That 3.5TB will also be expanded in future to 6TB or 8TB when I get some larger disks for the new backup server.
I'm currently trying out the live restore function which seems like some kind of witchcraft given I seem to already have mostly full functionality with only a fraction of the restore complete, but I'd prefer to not have to stress the disks by having to do a full restore when I only need to restore the os storage drive and not the data drive.
The vm originally started out as a bare metal server and the only times I've ever needed to restore the data drive is when I'm moving it, but the OS has broken a few times, particularly during version upgrades and I usually create a second vm I can work on while I'm home to get things up and going again, while leaving the working version intact and ready to spin up if I'm going out, while migrating the data storage between them.
Is there any way to exclude the data storage from the actual vm backup (by unchecking the backup box within the storage configuration) but push that hard disk image to pbs on its own so it's still getting backed up every day but doesn't have to be restored with the vm?