Comprehensive data protection for all workloads
Post Reply
pshute
Veteran
Posts: 254
Liked: 14 times
Joined: Nov 23, 2015 10:56 pm
Full Name: Peter Shute
Contact:

Removing VMs from a backup

Post by pshute »

Occasionally I need to restore a restore point from tape. We have only just enough disk space to restore one, maybe two restore points, so I need to use them and delete them soon after.

I noticed that I can delete VMs from the restored restore points, but the vbk file remains the same size. I assume it merely marks the removed VMs as deleted. Is it possible to rewrite the vbk file so it's only the size required for the remaining VMs?

If I could do this then I could safely keep the restored restore points around a bit longer.
veremin
Product Manager
Posts: 20282
Liked: 2257 times
Joined: Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin
Contact:

Re: Removing VMs from a backup

Post by veremin »

Is it possible to rewrite the vbk file so it's only the size required for the remaining VMs?
Nope, you cannot shrink restored backup file. Thanks.
foggy
Veeam Software
Posts: 21070
Liked: 2115 times
Joined: Jul 11, 2011 10:22 am
Full Name: Alexander Fogelson
Contact:

Re: Removing VMs from a backup

Post by foggy »

Peter, what kind of restore do you need to do? Just FYI, you can perform restore directly to infrastructure, without the need for staging repository.
sleti
Veeam Software
Posts: 4
Liked: 1 time
Joined: Apr 27, 2017 12:55 pm
Full Name: Stefan Letinu
Contact:

Re: Removing VMs from a backup

Post by sleti »

When Veeam Backup & Replication removes data for deleted VMs from regular backup chains, it does not free up space on the backup repository. It marks the space as available to be overwritten, and this space is overwritten during subsequent job sessions or the backup file compact operation.

When Veeam Backup & Replication removes data for deleted VMs from per-VM backup chains, it does not mark the space as available but deletes backup files since they contain data for 1 VM only.
pshute
Veteran
Posts: 254
Liked: 14 times
Joined: Nov 23, 2015 10:56 pm
Full Name: Peter Shute
Contact:

Re: Removing VMs from a backup

Post by pshute »

foggy wrote:Peter, what kind of restore do you need to do? Just FYI, you can perform restore directly to infrastructure, without the need for staging repository.
In this case we're doing an investigation, checking for presence of particular files, so we need to browse and compare the VM file system with other dates, not restore.
YouGotServered
Service Provider
Posts: 171
Liked: 51 times
Joined: Mar 11, 2016 7:41 pm
Full Name: Cory Wallace
Contact:

Re: Removing VMs from a backup

Post by YouGotServered »

Just out of curiosity here, if you told Veeam to run a defrag and compact operation on the full backup file? When Veeam re-writes the vbk, will it remove the "empty space" marked as rewritable from the vbk? If so, then I imagine you can delete the VM data, then schedule a defrag and compact for the next day and reclaim some space.
foggy
Veeam Software
Posts: 21070
Liked: 2115 times
Joined: Jul 11, 2011 10:22 am
Full Name: Alexander Fogelson
Contact:

Re: Removing VMs from a backup

Post by foggy »

Hi Cory, compact cannot be triggered separately from the job schedule, while in this case Peter restores backup files from the tape, so there's no job.
pshute
Veteran
Posts: 254
Liked: 14 times
Joined: Nov 23, 2015 10:56 pm
Full Name: Peter Shute
Contact:

Re: Removing VMs from a backup

Post by pshute »

So it's technically possible, but not available in the GUI? Can I suggest it as a new feature?

It could be available as an option to run any time on a vbk file, or optionally scheduled after a VM is deleted from it. It could also be an option when restoring a restore point from tape, to specify which VMs you want included in it, and the vbk file could be either built from those only as the data is read from tape, or fully restored then the rest removed, followed by compaction.
foggy
Veeam Software
Posts: 21070
Liked: 2115 times
Joined: Jul 11, 2011 10:22 am
Full Name: Alexander Fogelson
Contact:

Re: Removing VMs from a backup

Post by foggy »

pshute wrote:So it's technically possible, but not available in the GUI? Can I suggest it as a new feature?
No, there's currently no such functionality. But we already have a dedicated thread requesting this, so your voice is counted.
YouGotServered
Service Provider
Posts: 171
Liked: 51 times
Joined: Mar 11, 2016 7:41 pm
Full Name: Cory Wallace
Contact:

Re: Removing VMs from a backup

Post by YouGotServered »

foggy wrote:Hi Cory, compact cannot be triggered separately from the job schedule, while in this case Peter restores backup files from the tape, so there's no job.
I understand that, but what I'm saying is that if you have a compact operation scheduled from within the job options, the compact operation will in fact reclaim this space. Is that correct or am I mistaken?
foggy
Veeam Software
Posts: 21070
Liked: 2115 times
Joined: Jul 11, 2011 10:22 am
Full Name: Alexander Fogelson
Contact:

Re: Removing VMs from a backup

Post by foggy »

That is correct.
pshute
Veteran
Posts: 254
Liked: 14 times
Joined: Nov 23, 2015 10:56 pm
Full Name: Peter Shute
Contact:

Re: Removing VMs from a backup

Post by pshute »

foggy wrote:No, there's currently no such functionality. But we already have a dedicated thread requesting this, so your voice is counted.
Where's that thread, please?
foggy
Veeam Software
Posts: 21070
Liked: 2115 times
Joined: Jul 11, 2011 10:22 am
Full Name: Alexander Fogelson
Contact:

Re: Removing VMs from a backup

Post by foggy »

Post Reply

Who is online

Users browsing this forum: No registered users and 57 guests