{AJS運用}3.3 ajsbackup,ajsrestoreコマンドまたはJP1/AJS3 - Viewによるジョブネットの退避・回復の操作

 

  • 物理ホスト

ジョブネット退避
export JP1_USERNAME=jp1admin
/opt/jp1ajs2/bin/ajsbackup -F AJSROOT1 -b /var/opt/jp1ajs2/backup/schedule -R -m -n BACKUP "/*"

ls -l /var/opt/jp1ajs2/backup/schedule/BACKUP

ジョブネット削除
/opt/jp1ajs2/bin/ajsleave -F AJSROOT1 "/jg1/*"
/opt/jp1ajs2/bin/ajsdelete -F AJSROOT1 -R "/*"
/opt/jp1ajs2/bin/ajsprint -F AJSROOT1 "/*"

ジョブネット回復
/opt/jp1ajs2/bin/ajsrestore -F AJSROOT1 -b /var/opt/jp1ajs2/backup/schedule -f -d / -n BACKUP 0001
/opt/jp1ajs2/bin/ajsrestore -F AJSROOT1 -b /var/opt/jp1ajs2/backup/schedule -f -d /jg1 -n BACKUP 0002
/opt/jp1ajs2/bin/ajsrestore -F AJSROOT1 -b /var/opt/jp1ajs2/backup/schedule -f -d /jg1/jobnet1 -n BACKUP 0003
/opt/jp1ajs2/bin/ajsrestore -F AJSROOT1 -b /var/opt/jp1ajs2/backup/schedule -f -d /jg1/jobnet1 -n BACKUP 0004

/opt/jp1ajs2/bin/ajsrestore -F AJSROOT1 -b /var/opt/jp1ajs2/backup/schedule -f -d /jg1 -n BACKUP 0005
/opt/jp1ajs2/bin/ajsrestore -F AJSROOT1 -b /var/opt/jp1ajs2/backup/schedule -f -d /jg1/jobnet2 -n BACKUP 0006
/opt/jp1ajs2/bin/ajsrestore -F AJSROOT1 -b /var/opt/jp1ajs2/backup/schedule -f -d /jg1/jobnet2 -n BACKUP 0007

/opt/jp1ajs2/bin/ajsrestore -F AJSROOT1 -b /var/opt/jp1ajs2/backup/schedule -f -d /jg1 -n BACKUP 0008
/opt/jp1ajs2/bin/ajsrestore -F AJSROOT1 -b /var/opt/jp1ajs2/backup/schedule -f -d /jg1/jobnet3 -n BACKUP 0009
/opt/jp1ajs2/bin/ajsrestore -F AJSROOT1 -b /var/opt/jp1ajs2/backup/schedule -f -d /jg1/jobnet3 -n BACKUP 0010


/opt/jp1ajs2/bin/ajsprint -F AJSROOT1 "/*"


ジョブネット実行
/opt/jp1ajs2/bin/ajsentry -F AJSROOT1 -n /jg1/jobnet1
/opt/jp1ajs2/bin/ajsshow -F AJSROOT1 -R /jg1/jobnet1

退避ボックス中のユニット一覧を表示
/opt/jp1ajs2/bin/ajsrestore -F AJSROOT1 -t -n BACKUP

退避ボックス削除
/opt/jp1ajs2/bin/ajsbkudel -F AJSROOT1 -b /var/opt/jp1ajs2/backup/schedule -n BACKUP

 

  • 論理ホスト


ジョブネット退避
export JP1_USERNAME=jp1admin
/opt/jp1ajs2/bin/ajsbackup -F AJS3SCHEDULE001 -b /mnt/sdc2/jp1ajs/jp1ajs2/backup/schedule -R -m -n BACKUP "/*"
ls -l /mnt/sdc2/jp1ajs/jp1ajs2/backup/schedule/BACKUP

ジョブネット削除
/opt/jp1ajs2/bin/ajsleave -F AJS3SCHEDULE001 "/jg1/*"
/opt/jp1ajs2/bin/ajsdelete -F AJS3SCHEDULE001 -R "/*"
/opt/jp1ajs2/bin/ajsprint -F AJS3SCHEDULE001 "/*"

ジョブネット回復
/opt/jp1ajs2/bin/ajsrestore -F AJS3SCHEDULE001 -b /mnt/sdc2/jp1ajs/jp1ajs2/backup/schedule -f -d / -n BACKUP 0001
/opt/jp1ajs2/bin/ajsrestore -F AJS3SCHEDULE001 -b /mnt/sdc2/jp1ajs/jp1ajs2/backup/schedule -f -d /jg1 -n BACKUP 0002
/opt/jp1ajs2/bin/ajsrestore -F AJS3SCHEDULE001 -b /mnt/sdc2/jp1ajs/jp1ajs2/backup/schedule -f -d /jg1/jobnet1 -n BACKUP 0003
/opt/jp1ajs2/bin/ajsrestore -F AJS3SCHEDULE001 -b /mnt/sdc2/jp1ajs/jp1ajs2/backup/schedule -f -d /jg1/jobnet1 -n BACKUP 0004

/opt/jp1ajs2/bin/ajsrestore -F AJS3SCHEDULE001 -b /mnt/sdc2/jp1ajs/jp1ajs2/backup/schedule -f -d /jg1 -n BACKUP 0005
/opt/jp1ajs2/bin/ajsrestore -F AJS3SCHEDULE001 -b /mnt/sdc2/jp1ajs/jp1ajs2/backup/schedule -f -d /jg1/jobnet2 -n BACKUP 0006
/opt/jp1ajs2/bin/ajsrestore -F AJS3SCHEDULE001 -b /mnt/sdc2/jp1ajs/jp1ajs2/backup/schedule -f -d /jg1/jobnet2 -n BACKUP 0007

/opt/jp1ajs2/bin/ajsrestore -F AJS3SCHEDULE001 -b /mnt/sdc2/jp1ajs/jp1ajs2/backup/schedule -f -d /jg1 -n BACKUP 0008
/opt/jp1ajs2/bin/ajsrestore -F AJS3SCHEDULE001 -b /mnt/sdc2/jp1ajs/jp1ajs2/backup/schedule -f -d /jg1/jobnet3 -n BACKUP 0009
/opt/jp1ajs2/bin/ajsrestore -F AJS3SCHEDULE001 -b /mnt/sdc2/jp1ajs/jp1ajs2/backup/schedule -f -d /jg1/jobnet3 -n BACKUP 0010
/opt/jp1ajs2/bin/ajsprint -F AJS3SCHEDULE001 "/*"

ジョブネット実行
/opt/jp1ajs2/bin/ajsentry -F AJS3SCHEDULE001 -n /jg1/jobnet1
/opt/jp1ajs2/bin/ajsshow -F AJS3SCHEDULE001 -R /jg1/jobnet1

退避ボックス中のユニット一覧を表示
/opt/jp1ajs2/bin/ajsrestore -F AJS3SCHEDULE001 -t -n BACKUP

退避ボックス削除
/opt/jp1ajs2/bin/ajsbkudel -F AJS3SCHEDULE001 -b /mnt/sdc2/jp1ajs/jp1ajs2/backup/schedule -n BACKUP