Amount of data (active data, <45 days) for a customer
Hi,
I have opened a new thread since the other one is closed.
I was asked by management to do the following:
A report for each customer in Netbackup, to reveal the amount of data within <=45 days for each customer.
- So for this one, i`m guessing if I take a 45 day interval within any month(latest), and then split them by customer, I can then see this?
- Of course not expired data which can be revealed by Protected Data in OpsCenter, right?
And a 2nd report with the same this only the achive data >45 days for each customer.
- Which this can be a looong data generating report.But i`m guessing it shouldnt be that much since it only supposed to have unexpired data.
- Is this report, relevant if I use Protected Data(which includes I guess all data protected/active) for >45 days, since Netbackup is in place?
- we have a client with infinite retention..so I have to gather all data for this one.
- We are using OpsCenter Analitics, so I can use this as I did before.
How can I do this? How can I exclude expired images form both reports?
//George
Hi George,
Sorry for the delay, been a bit busy.
This should do it.
SELECT
domain_jobimage.clientname as "Client Name",
COALESCE(CAST(SUM(domain_image.sizeOfImageInKBytes)/1024.0/1024.0 AS NUMERIC (20,2)), 0) AS 'Protected Size (GB)'
FROM
domain_image, domain_jobimage
WHERE
domain_jobimage.imageid=domain_image.id
AND
DATEDIFF(day,UTCBigIntToNomTime(domain_image.writeEndTime), GETDATE()) <= 45
GROUP BY
"Client Name"