NBU脚本:查看启用或未启用加速的备份策略

# bppllist: Field 41 - Optimized backup. 0 = no, 1 = yes. Enables the backup of deduplicated data that some Microsoft Windows operating system versions provide. If a client has a deduplicated file system configured, NetBackup backs up the deduplicated data. If the client is not set up for deduplication or does not support it, then a normal file backup occurs.
 
列出未使用acc策略
#!/bin/bash
while read sp
do
    if [ `bppllist $sp |sed -n '3p' |awk '{print $41}'` == 1 ]; then
        echo $sp_name
    fi
done
 
列出策略及acc状态
#!/bin/bash
for sp in $@
do
    bppllist $sp |sed -n '3p' |awk -v var="$sp" '{print var, $41}'
done
 
启用acc
#!/bin/bash
for sp in $@
do
    /usr/openv/netbackup/bin/admincmd/bpplinfo $sp -modify -use_accelerator 1
    echo "Accelerator for $sp was enabled"
done
 
posted @ 2024-07-03 18:10  TommyM  阅读(4)  评论(0编辑  收藏  举报