#!/bin/bashsource~/.bash_profiledays=`date+%Y%m%d`EXPDPNC65/NC65directory=EXPDP_dirdumpfile=NC65_$days.dmplogfile=NC65_$days.logschemas=NC65cd/home/data/db_backup/EXPDP_backup/tar-zcvfNC65_$days.dmp.tar.gzNC65_$days.dmpNC65_$days.log#cd/home/data/db_backup/EXPDP_backup/#tar-zcvfNC65_$days.log.tar.gzNC65_$days.logfind/home/data/db_backup/EXPDP_backup/-typef-name*.dmp-execrm-rf{}\;find/home/data/db_backup/EXPDP_backup/-typef-name*.log-execrm-rf{}\;find/home/data/db_backup/EXPDP_backup/-mtime+7-name*.dmp.tar.gz-execrm-rf{}\;
Oracle数据库EXPDP脚本#!/bin/bashsource~/.bash_profiledays=`date+%Y%m%d`EXPDPNC65/NC65directory=EXPDP_dirdumpfile=NC65_$days.dmplogfile=NC65_$days.logschemas=NC65cd/home/data/db_backup/EXPDP_backup/tar-zcvfNC65_$days.dmp.tar.gzNC65_$days.dmpNC65_$days.log#cd/home/data/db_backup/EXPDP_backup/#tar-zcvfNC65_$days.log.tar.gzNC65_$days.logfind/home/data/db_backup/EXPDP_backup/-typef-name*.dmp-execrm-rf{}\;find/home/data/db_backup/EXPDP_backup/-typef-name*.log-execrm-rf{}\;find/home/data/db_backup/EXPDP_backup/-mtime+7-name*.dmp.tar.gz-execrm-rf{}\;