Thursday, 14 January 2010

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 }')
do
bpexpdate -backupid $i -d 0 -force (or not -force to ask y/n)
done


Get a list of the clients
bpplclients

Check out the netbackup processes running
bpps -x

Force quit all netbackup processes
bp.kill_all

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 :)

No comments:

Post a Comment