Copy vm backups from datasource to another (similar to sync)

voarsh

Member
Nov 20, 2020
218
19
23
28
I wish to preserve a backups from various datasources (at least 2) into a new datasource with a much longer data retention time, the only thing I can seem to do is to a sync between datasources, but that will bring in data from all vm's, I just need a specific vm to be synced over with a longer data retention period, any ideas for me?
 
PBS will split every VM into thousands of small 4MB chucks and reuse them for different VMs (deduplication). So I think it is not possible to sync only specific VMs (or atleast that would be very difficult...like parsing all the chunk index files of all snapshots, pick only the ones needed for all of the VM backups and also delete them later from your sync target after the PBS garbage collection has trashed individual chunks).

What you could do is to create two thin provisioned PBS datastores and create two backup jobs using different datastores with different backup retentions.
 
Last edited:
What you could do is to create two thin provisioned PBS datastores and create two backup jobs using different datastores with different backup retentions.
Ah yes, going forward that would be helpful, but you see, I have some backups/data that can't be deleted for the forseeable future, so I either need to get them onto a datastore with a longer retention time, or download the backup....

I could get a drive that'll fit the entire synced datastore.... seems the only efficient way to do this. and to delete the vm backups I do not need on the higher retention datastore.
 
Last edited:
As far as I know they are working on a feature to exclude specific VM snapshots from regular backup retention. Then it would be possible to block specific backups so they won't get deleted by the backup retention. But not sure when that will be ready. But if your backups are so important then it might be a good idea anyway to get another drive so you can backup your backups.
 
  • Like
Reactions: voarsh
As far as I know they are working on a feature to exclude specific VM snapshots from regular backup retention. Then it would be possible to block specific backups so they won't get deleted by the backup retention. But not sure when that will be ready. But if your backups are so important then it might be a good idea anyway to get another drive so you can backup your backups.
Yeah, thanks. Like I said, I'll get a larger drive that can fit all of the datastores backup, then trim the ones I don't need.
Eagerly await exclusions for retentions, etc.
 

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!