1. 创建备份目录
[root@localhost ~]# mkdir -p /d01/bak_upg_three
2.创建备份脚本:
[root@localhost ~]# vim bakcup.sh
#!/bin/bash
cd /d01/penske
echo “It’s backuping ora11g directory”
tar zcfp /d01/bak_upg_three/ora11g.tar.gz ./ora11g
echo “It’s backuping R12apps directory”
tar zcfp /d01/bak_upg_three/R12apps.tar.gz ./R12apps
echo “It’s completed all backup handle”
保存,退出。
3. 执行备份脚本
[root@localhost ~]# nohup ./backup3.sh>backup3.log 2>&1 &
4. 查看备份进程
ps -ef | grep tar
阅读(1809) | 评论(0) | 转发(0) |