# 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