Export old backups

DeBuurman

Member
Jan 16, 2024
9
5
8
I need to keep yearly backups for 7 years. I don't want to keep them on my PBS : is there a way to export the backup so I can store it offline on some storage ?
 
There was a recent discussion on the German forum ( use something like deepl to Translation):

Basically you can export the discs and config of a vm from a snapshot with the backup-client, afterwards you create a vma file with the vma tool. The vma file can then be reatored with qmrestore for vms or pct restore for containers:

https://pve.proxmox.com/pve-docs/qmrestore.1.html
https://pve.proxmox.com/pve-docs/pct.1.html
https://pve.proxmox.com/wiki/VMA
https://pbs.proxmox.com/docs/backup-client.html
 
  • Like
Reactions: UdoB and DeBuurman
Network storage (especially over a WAN connection like to a cloud storage) isn't a good option for a PBS datastore:

For VMA backups it might work, but for an export from PBS you will still need to do the backup-client->vma dance.

Alternatively you could create additional backup jobs to the smb share. This would use the regular vzdump/vma backups instead of pbs. I do this myself in my homelab. You will loose the dirty bitmap (needed to record which data on the vm was already backed up to PBS) of the vm though so the next backup to PBS will take longer. For large amounts of data this might not be what you want.

Alternatively you could use the native features of PBS for offsite backup:
- Another PBS on an offsite location (e.G. family member/friends place for homelab, another office of your company, cloud vserver or managed PBS instance (companys like tuxis.nl and Inett provide such services for around 20€ /TB or 0,02 € per GB, there are more providers!). Then create a pull-sync on the offsite PBS to pull the backups from your local PBS
- Use tape backups or a removable datastores (aka USB discs) to store copies of the datastore outside of your place
- Use the new S3 feature to replicate copies to a cloud storage. Please note, that S3 support is still "technology preview" and has some quirks, so don't use it as sole long term storage

All of the native features will still need a PBS for restore though.
 
Network storage (especially over a WAN connection like to a cloud storage) isn't a good option for a PBS datastore:

For VMA backups it might work, but for an export from PBS you will still need to do the backup-client->vma dance.

Alternatively you could create additional backup jobs to the smb share. This would use the regular vzdump/vma backups instead of pbs. I do this myself in my homelab. You will loose the dirty bitmap (needed to record which data on the vm was already backed up to PBS) of the vm though so the next backup to PBS will take longer. For large amounts of data this might not be what you want.

Alternatively you could use the native features of PBS for offsite backup:
- Another PBS on an offsite location (e.G. family member/friends place for homelab, another office of your company, cloud vserver or managed PBS instance (companys like tuxis.nl and Inett provide such services for around 20€ /TB or 0,02 € per GB, there are more providers!). Then create a pull-sync on the offsite PBS to pull the backups from your local PBS
- Use tape backups or a removable datastores (aka USB discs) to store copies of the datastore outside of your place
- Use the new S3 feature to replicate copies to a cloud storage. Please note, that S3 support is still "technology preview" and has some quirks, so don't use it as sole long term storage

All of the native features will still need a PBS for restore though.
Thanks Johannes for your reply. As these backups only need to be kept for 7 years, it will be a once-a-year thing. But I expect there will be more servers that need to be kept for x-years so a managed PBS would make sense. Besides that, a backup needs to restored if required, so the easier it can be done the better. I will check what our friends from Tuxis offer.
 
1st) I would make a "dummy" restore on a other Server.
2nd) and after that, i can use the PVE integrated vzdump backup to store a 100% copy of your VM on a external device.
 
  • Like
Reactions: UdoB and Johannes S