Useful netbackup commands

You are stuck using netbackup (which is a great product but nevertheless not fun!), do not despair! Here are some commands that might make your life easier:

Get the names and the number of backups saved for a client
bpimagelist -client -d 01/01/2007 | grep IMAGE | awk '{ print $6 }'

Find and eliminate all backups for a client
for i in $(bpimagelist -client -d 01/01/2007 | grep IMAGE | awk '{ print $6 }')
bpexpdate -backupid $i -d 0 -force (or not -force to ask y/n)

Get a list of the clients

Check out the netbackup processes running
bpps -x

Force quit all netbackup processes

Run an (expired) image cleanup
bpimage -cleanup

Predict the schedule for a policy
nbpemreq -predict -date 01/17/2010 -policy_filter


Thats all for now :)

Popular Posts