12-09-2014 01:15 AM
NBU 7.5.0.5, master server redhat linux 6.x
due to a messy SLP, my PD free space has gone very low. now i created the below script hoping to automate and make it fast to delete disk images that already have tape dedups. individually, the commands work but i just want some input from different perspectives as i could have overlooked something.
#!/bin/sh
/usr/openv/netbackup/bin/admincmd/nbstlutil list -backupid $1 -U | grep "Copy State"|awk '{ if ($5 == "\(COMPLETE\)") /usr/openv/netbackup/bin/admincmd/bpexpdate -backupid $1 -copy 1 -d 0 ) }'
the awk statement is looking for the "Copy State" that says "COMPLETE". when found, it'll delete the disk image. i would still have to press "y" for the delete to continue.
appreciate any feedback.
Solved! Go to Solution.
12-11-2014 09:39 AM
Hi Rino19ny
From the command guide:
-force
Before you run the specified operation, bpexpdate queries before it starts the
operation. This option forces the bpexpdate command to carry out the operation
without querying the user.
--AZ Dave
12-11-2014 09:39 AM
Hi Rino19ny
From the command guide:
-force
Before you run the specified operation, bpexpdate queries before it starts the
operation. This option forces the bpexpdate command to carry out the operation
without querying the user.
--AZ Dave
12-23-2014 06:19 AM
hi, yes i soon found out about this after posting :)
thanks.