Managing Images
Expire Image
Command location (directory)
<install path>\NetBackup\bin\admincmd
Command syntax
bpexpdate -backupid <backupid> -d 0 -copy <copy..no>
Example
C:\Program Files\Veritas\NetBackup\bin\admincmd>bpexpdate -backupid ibmx33602_12
21671989 -d 0 -copy 2
Are you SURE you want to delete ibmx33602_1221671989 copy 2 y/n (n)? y
C:\Program Files\Veritas\NetBackup\bin\admincmd>
List Retention Levels
Command location (directory)
<install path>\NetBackup\bin\admincmd
Command
/usr/openv/netbackup/bin/admincmd/bpretlevel
Example
# bpretlevel -l
0 604800 1 week
1 1209600 2 weeks
2 1814400 3 weeks
3 2678400 1 month
C:\VERITAS\NetBackup\bin\admincmd>bpretlevel -U
Level Days Label
0 7 1 week
1 14 2 weeks
Convert Epoch Date Time Format
NetBackup image files use the epoch time and date format. Use this command to convert the epoch code to a readable date.
# ./bpdbm -ctime 0939856206
939856206 = Wed Oct 13 18:10:06 1999
Run Image Cleanup
Command location (directory)
<install path>\NetBackup\bin\admincmd
Command syntax
bpimage -cleanup -allclients
Freeze or Unfreeze Media
When media exceeds a certain number of errors, the media is frozen. If its determined that the cause is something other than the media, such as a bad tape drive, then use the following syntax to unfreeze the media so that it can be used for new backups.
NetBackup\bin\admincmd\bpmedia -unfreeze -m <TapeNumber> -h <MediaServer>