Management reporting and documentation
Post Reply
RubinCompServ
Service Provider
Posts: 278
Liked: 69 times
Joined: Mar 16, 2015 4:00 pm
Full Name: David Rubin
Contact:

Locating orphaned backup data

Post by RubinCompServ »

Around 6-9 months ago, my VBR seems to have gone through a period where it removed old backups from the configuration but didn't actually delete the corresponding backup files on the target. As a result, I have a sizeable amount of old backup files taking up space on my repo and not associated with any backup job. Does VeeamONE have a report that can tell me which files are "orphaned" backup files so that I can go through and delete them?
RomanK
Veeam Software
Posts: 649
Liked: 170 times
Joined: Nov 01, 2016 11:26 am
Contact:

Re: Locating orphaned backup data

Post by RomanK »

Hello David,

Not exactly the same as requested, but still could help with the task Backups on Repository report.
There you could see the Parent Jobs and Latest Restore Point columns and find old backups or jobs.

Thanks
RubinCompServ
Service Provider
Posts: 278
Liked: 69 times
Joined: Mar 16, 2015 4:00 pm
Full Name: David Rubin
Contact:

Re: Locating orphaned backup data

Post by RubinCompServ »

@RomanK,

I finally got my VeeamONE working properly (a separate issue) and was able to run this report. Unfortunately, it does the opposite of what I'm looking for: I'm looking for backup (VBK & VIB) files that are not associated with a backup anymore. In other words, these are files that were once associated with a backup but VBR thinks that it aged them out and removed them but, for whatever reason, they never actually got deleted from the actual repository. Rescanning the repo does not bring them in, but they still exist and count against the customer's quota, which is problematic when I try to justify why someone needs >200TB of backup space with only 100TB of servers and a very basic backup job (they had around 50TB used from VBKs from 2 years ago, despite the backup job being a basic Forever Forward with 14 days' retention).
ginnyh
Lurker
Posts: 1
Liked: never
Joined: Mar 01, 2021 2:51 am
Full Name: Ginny Hastelow
Contact:

Re: Locating orphaned backup data

Post by ginnyh »

Hey There,

I was just wondering if there was any solution to this issue as we are experiencing the same problem

Thanks
RubinCompServ
Service Provider
Posts: 278
Liked: 69 times
Joined: Mar 16, 2015 4:00 pm
Full Name: David Rubin
Contact:

Re: Locating orphaned backup data

Post by RubinCompServ »

Sadly not. VeeamONE seems to be rather lacking in the Veeam Reports arena.
jorgedlcruz
Veeam Software
Posts: 1387
Liked: 622 times
Joined: Jul 17, 2015 6:54 pm
Full Name: Jorge de la Cruz
Contact:

Re: Locating orphaned backup data

Post by jorgedlcruz » 1 person likes this post

Hello,
We do not have a current solution for this as what we report and monitor is pulled from VBR database. We never look, explore, or discover repositories files ourselves.

I agree that the repository scan and orphaned backup files hunter, sounds very nice as a feature, but presents so many challenges from the VeeamONE perspective that I do not foresee tackle the issue soon.

Perhaps VBR can include this repo scan vs database scan as a daily task, adding @Dima P. to see what he thinks.

Thank you
Jorge de la Cruz
Senior Product Manager | Veeam ONE @ Veeam Software

@jorgedlcruz
https://www.jorgedelacruz.es / https://jorgedelacruz.uk
vExpert 2014-2024 / InfluxAce / Grafana Champion
Dima P.
Product Manager
Posts: 14431
Liked: 1580 times
Joined: Feb 04, 2013 2:07 pm
Full Name: Dmitry Popov
Location: Prague
Contact:

Re: Locating orphaned backup data

Post by Dima P. »

Possibly you can re-import such backups to a Veeam B&R and review all the imported backups one by one?
RubinCompServ
Service Provider
Posts: 278
Liked: 69 times
Joined: Mar 16, 2015 4:00 pm
Full Name: David Rubin
Contact:

Re: Locating orphaned backup data

Post by RubinCompServ »

The problem is that there are some VBK/VIB files out there that, for some reason, don't show up as part of a backup, don't get imported when the repo is rescanned, but DO count against the configured quota. It could be that this is just a bug in VBR that it doesn't pick up every VBK/VIB in a scanned repo; I've opened tickets for that in the past and the engineers have all said the equivalent of, "Maybe there's something wrong with the file which is why VBR doesn't pick it up. Just manually delete it and you'll be fine." This works great as a one-off but doesn't solve the problem of those "rogue" files that exist for any customer that hasn't done their math.
Dima P.
Product Manager
Posts: 14431
Liked: 1580 times
Joined: Feb 04, 2013 2:07 pm
Full Name: Dmitry Popov
Location: Prague
Contact:

Re: Locating orphaned backup data

Post by Dima P. »

I'd look into backup file properties via B&R console to get the full list of associated files within this backup / backup chain. Then delete files which are not listed in the UI from the file system (do not go full delete, copy those to another folder, make sure that backup chain is fully operational and only then delete).
RubinCompServ
Service Provider
Posts: 278
Liked: 69 times
Joined: Mar 16, 2015 4:00 pm
Full Name: David Rubin
Contact:

Re: Locating orphaned backup data

Post by RubinCompServ »

@Dima P.,

I have upwards of 500 backup jobs to go through. To run a manual audit of each backup job against what's on the actual repositories would be a herculean task.
mjs66
Lurker
Posts: 1
Liked: 1 time
Joined: Aug 04, 2021 5:19 pm
Full Name: Jason Smedley
Contact:

Re: Locating orphaned backup data

Post by mjs66 » 1 person likes this post

I'm have this exact same issue. I've found a way to list the files associated with a backup job, but have not found any means via powershell to get a full list of files on a repository so they can be compared.
RubinCompServ
Service Provider
Posts: 278
Liked: 69 times
Joined: Mar 16, 2015 4:00 pm
Full Name: David Rubin
Contact:

Re: Locating orphaned backup data

Post by RubinCompServ »

It seems to be that this should be a (relatively) simple item to script (famous last words, amirite?). VBR (or the VBR db) is aware of all files that are associated with all backup jobs. It also has the ability to read all of the files in a given repo. As such, there should be a way to query that list of files (not just a repo rescan) and do a diff against the list of files that are associated with backup jobs on that repo. Doing so will give you a list of files that are present and shouldn't be, and will also give you a list of files that aren't present but should be (which means that there are missing backup points).
DanielJ
Service Provider
Posts: 201
Liked: 34 times
Joined: Jun 10, 2019 12:19 pm
Full Name: Daniel Johansson
Contact:

Re: Locating orphaned backup data

Post by DanielJ » 1 person likes this post

This might be the most persistent Veeam bug ever. Check the script I wrote in the thread below. It needs work since it's not aware of modern per-vm chains, but it could be a starting point.

cloud-connect-backup-f43/bug-vbr-can-le ... 63-30.html
RubinCompServ
Service Provider
Posts: 278
Liked: 69 times
Joined: Mar 16, 2015 4:00 pm
Full Name: David Rubin
Contact:

Re: Locating orphaned backup data

Post by RubinCompServ »

It looks good - I'll have to play with it. Thanks!
Post Reply

Who is online

Users browsing this forum: No registered users and 6 guests