#!/bin/sh
DB2INSTHOME=/home/db2inst1/sqllib
export DB2INSTHOME
if [ -f $DB2INSTHOME/db2profile ]; then
. $DB2INSTHOME/db2profile
fi
cd $HOME/backup
rm -rf *
db2stop force
db2start
db2 backup db ripa with 4 buffers buffer 4096 parallelism 2
tar -zcvf dbbak_full.tar.gz *db2inst1*
rm -f *db2inst1*
DB2备份脚本
最新推荐文章于 2021-05-02 07:27:15 发布