I was hoping to find a glimmer of hope that PBS would support some kind of built-in way to back up the boot disks of my PVE hosts. I have a test host that uses just a single disk for booting, and I'd really like to find a way to back it up fully in case the disk dies. My main host has mirrored boot disks that at least grants me some protection, but even that I'd like to back up.
Some research brought up using snapshots as the boot disks use ZFS and then send them to backup storage, but I'm not sure how to integrate this into my PBS server. So far I have this:
### Backup Process
1. Create a Snapshot:
- First, create a snapshot of the rpool to capture the current state of the system.
zfs snapshot rpool/ROOT@backup
2. Send the Snapshot to a Backup Location:
- Use the "zfs send" command to send the snapshot to a backup location, such as an external drive or another ZFS pool.
zfs send rpool/ROOT@backup > /path/to/backup/backup.img
I also wondered if after the backup I should also remove the snapshot so I have this:
### Remove the Snapshot
1. List the Snapshots:
- First, list the snapshots to ensure you are removing the correct one.
zfs list -t snapshot
2. Remove the Snapshot:
- Use the "zfs destroy" command to remove the snapshot.
zfs destroy rpool/ROOT@backup
It looks quite straightforward, but I don't know if this would work or if there's anyway to automate it and use PBS for storage of the backups.
I did consider using Veeam to do this but I'd rather keep the number of backup solutions down to a minimum.
Also, yes I know rebuilding is fairly easy but it wouldn't recover the multitude of customisations I've done over time.
Some research brought up using snapshots as the boot disks use ZFS and then send them to backup storage, but I'm not sure how to integrate this into my PBS server. So far I have this:
### Backup Process
1. Create a Snapshot:
- First, create a snapshot of the rpool to capture the current state of the system.
zfs snapshot rpool/ROOT@backup
2. Send the Snapshot to a Backup Location:
- Use the "zfs send" command to send the snapshot to a backup location, such as an external drive or another ZFS pool.
zfs send rpool/ROOT@backup > /path/to/backup/backup.img
I also wondered if after the backup I should also remove the snapshot so I have this:
### Remove the Snapshot
1. List the Snapshots:
- First, list the snapshots to ensure you are removing the correct one.
zfs list -t snapshot
2. Remove the Snapshot:
- Use the "zfs destroy" command to remove the snapshot.
zfs destroy rpool/ROOT@backup
It looks quite straightforward, but I don't know if this would work or if there's anyway to automate it and use PBS for storage of the backups.
I did consider using Veeam to do this but I'd rather keep the number of backup solutions down to a minimum.
Also, yes I know rebuilding is fairly easy but it wouldn't recover the multitude of customisations I've done over time.