可以将存储管理器设置为将逻辑日志备份到磁盘上,接着编写脚本自动将这些逻辑日志从磁盘迁移到磁带,以便进行工作环境之外的保存。编辑 onbar 脚本使其在 onbar_d 进程完成后调用该迁移脚本。以下示例显示了调用迁移脚本的脚本:
onbar_d "$@" # starts the backup or restore
EXIT_CODE=$? # any errors?
PHYS_ONLY=false #if it's physical-only, do nothing
for OPTION in $*; do
if [$OPTION = -p]; then
PHYS_ONLY = true
fi
done
if ! PHYS_ONLY; then # if logs were backed up, call another
migrate_logs # program to move them to tape
fi