05-21-2014 11:29 PM
Hi,
need you help in getting the past 50days backup size of list of clients. as we have 50 dsays for all the schedules, hope we can get it. But need your ideas to accomplish this without spending more time.
Solved! Go to Solution.
05-21-2014 11:47 PM
You don't mention if you are using Windows or Unix servers or if you have Opscenter
from the command line you can use:
bpimagelist -client <client name> -d <date> -U
You will need to work out what the date was 50 days ago. This will give you a list of all backups across all policies for the client you use.
The 4th field in the result is the size of the backup.
If you want results for all clients, simply remove the -client option, but you won't be able to filter the results based on individual clients.
05-22-2014 12:06 AM
Excuse the 'roughness' but this is something I've used a few times since something similar was first posted a few years back
Create a file 'client_list' with a list of the clients you need the info on, then:
for i in `cat client_list` ; do
echo $i
bpimagelist -hoursago 1200 -U -client $i |awk '{file+=$4} {kb+=$5} END {print file" " kb}'
#bpimagelist -hoursago 1200 -U -client $i -media
echo "-------------------"
done
.... it also prints out number of files, which was a requirement at the time.
So outputs:
client_1
749212 102432274
-------------------
client_2
9866881 241699192
-------------------
client_3
3037215 204250543
05-21-2014 11:47 PM
You don't mention if you are using Windows or Unix servers or if you have Opscenter
from the command line you can use:
bpimagelist -client <client name> -d <date> -U
You will need to work out what the date was 50 days ago. This will give you a list of all backups across all policies for the client you use.
The 4th field in the result is the size of the backup.
If you want results for all clients, simply remove the -client option, but you won't be able to filter the results based on individual clients.
05-22-2014 12:02 AM
Thanks for the post Revaroo...
Master Server - Solaris,
Clients - Unix/Windows/AIX/Linux
OpsCenter - 7.5.0.7 on Windows 2008 R2
I tried with
bpimaglist -hours ago 1200 -client abcde -U
I have around 3000 clients in my list to capture the backup size in that case I can go with a script. Again, manual effort for summarising the o/p of script.
05-22-2014 12:06 AM
Excuse the 'roughness' but this is something I've used a few times since something similar was first posted a few years back
Create a file 'client_list' with a list of the clients you need the info on, then:
for i in `cat client_list` ; do
echo $i
bpimagelist -hoursago 1200 -U -client $i |awk '{file+=$4} {kb+=$5} END {print file" " kb}'
#bpimagelist -hoursago 1200 -U -client $i -media
echo "-------------------"
done
.... it also prints out number of files, which was a requirement at the time.
So outputs:
client_1
749212 102432274
-------------------
client_2
9866881 241699192
-------------------
client_3
3037215 204250543