Hopefully a simple question, but just have been working on a few scripts that help track backup files and was curious on the difference between these two.
Previously I had thought GetAllStorages() must be used for Hypervisor backup objects and wrote logic to catch that versus Agents backups, but just now trying with GetAllChildrenStorages(), I see that across the backups in my lab it returns the same for any backup as best I can tell.
I can test this more, but was hoping maybe someone already knew: Is it safe to just convert the scripts over to using GetAllChildrenStorages() to retrieve Storage objects from all types of Backups?
Or are there corner cases where I'll get undesired results?
-
- Veteran
- Posts: 643
- Liked: 312 times
- Joined: Aug 04, 2019 2:57 pm
- Full Name: Harvey
- Contact:
-
- Veeam Software
- Posts: 2010
- Liked: 670 times
- Joined: Sep 25, 2019 10:32 am
- Full Name: Oleg Feoktistov
- Contact:
Re: GetallStorages() vs GetAllChildrenStorages()
Hi Harvey,
I'm not quite aware of the background of these two methods, but, as far as I can tell, they have the same backend.
They return the same object classes, have no other arguments or conditions and access the same VBR DB table.
Best regards,
Oleg
I'm not quite aware of the background of these two methods, but, as far as I can tell, they have the same backend.
They return the same object classes, have no other arguments or conditions and access the same VBR DB table.
Best regards,
Oleg
Who is online
Users browsing this forum: No registered users and 16 guests