Video Screencast Help
Give us your opinion and win with Symantec! Please help us by taking this survey to tell us about your experience with Symantec Connect, so that we can continue to grow and improve.  Take the survey.

Netbackup command to find data backed up on a daily, weekly and monthly basis.

Created: 24 May 2010 | 6 comments

Can any one help me find the right combination of   "bperror -backstat ......"

so that  the output would be the data backed up on a daily , weekly and monthly basis from Netbackup 6.5

Comments 6 CommentsJump to latest comment

Ed Wilts's picture

This is not a trivial problem since NetBackup by default won't keep data that long.  If you need data that old, you'll either need to collect it yourself or purchase a commercial product that will collect that for you.

If this post helps you, please add a vote.

If this post answers your question, please mark it as a solution.  Thanks!
 

Marianne's picture

bpimagelist will be able to report on backups for as long as the images are valid (not expired).
Have a look at:
bpimagelist [-client <client-name>] -d <start-date> -e <end-date> -U

Supporting Storage Foundation and VCS on Unix and Windows as well as NetBackup on Unix and Windows
Handy NBU Links

Ed Wilts's picture

bperror -backstat is used to report on the status of the jobs.  bpimagelist will give you information on a valid image but it won't help with what the original poster wanted.

If you want to know if a job ran 60 days ago and failed, there is nothing in NetBackup out of the box that will give you that information.
If you want to know that a job successfully ran 60 days ago but the images expired 30 days ago, there is nothing in NetBackup out of the box that will give you this either.

NetBackup's built-in reporting is good enough for what's happening right now or over the last few days.  It's very bad at any sort of trending or auditing of successful/failed jobs that happened more than a few days ago.

Personally, I run Aptare's StorageConsole product.  It certainly addresses the original poster's request and a lot more.  There are other 3rd party tools that will do it too.

If this post helps you, please add a vote.

If this post answers your question, please mark it as a solution.  Thanks!
 

Marianne's picture

Hi Ed, what the original poster asked for was, in his own words "output would be the data backed up".
I believe that bpimagelist will give exactly that.
You will agree that 'bperror - backstat' merely gives backup status...

Supporting Storage Foundation and VCS on Unix and Windows as well as NetBackup on Unix and Windows
Handy NBU Links

Cynthia Christensen's picture

If you have a Unix master server, I've got a script that will give you the total backup jobs & total volume, total volume by client, and total volume by policy.  You can set the # of hours - so you could just have three scripts, one for daily, one for weekly, one for monthly.  I cron mine and have it email me the daily report every morning.