{PFM Agent(UNIX)}4.8 バックアップとリストア

 

  • 物理ホスト

--4.8.1 バックアップ
/opt/jp1pc/tools/jpcspm stop -key all

tar cvzf /root/agtu.tgz /opt/jp1pc/agtu

/opt/jp1pc/tools/jpcspm start -key all

--4.8.2 リストア

/opt/jp1pc/tools/jpcspm stop -key all

cp /root/agtu.tgz /tmp
cd /tmp
tar xvzf /tmp/agtu.tgz

rm -rf /opt/jp1pc/agtu/*
cp -a /tmp/opt/jp1pc/agtu/* /opt/jp1pc/agtu


/opt/jp1pc/tools/jpcspm start -key all

 

  • 論理ホスト

--4.8.1 バックアップ
/opt/jp1pc/tools/jpcspm stop -key UNIX -lhost mmm194
/opt/jp1pc/tools/jpcspm stop -key AH -lhost mmm194

tar cvzf /mnt/sdc2/agtu.tgz /mnt/sdc2/jp1pc/agtu

/opt/jp1pc/tools/jpcspm start -key AH -lhost mmm194
/opt/jp1pc/tools/jpcspm start -key UNIX -lhost mmm194


--4.8.2 リストア

/opt/jp1pc/tools/jpcspm stop -key UNIX -lhost mmm194
/opt/jp1pc/tools/jpcspm stop -key AH -lhost mmm194

cp /mnt/sdc2/agtu.tgz /tmp
cd /tmp
tar xvzf /tmp/agtu.tgz

rm -rf /mnt/sdc2/jp1pc/agtu/*
cp -a /tmp/mnt/sdc2/jp1pc/agtu/* /mnt/sdc2/jp1pc/agtu

 

/opt/jp1pc/tools/jpcspm start -key AH -lhost mmm194
/opt/jp1pc/tools/jpcspm start -key UNIX -lhost mmm194