RCOPY, RCP 사용법

2013. 5. 29. 16:2199. 정리전 - IT/13. Unix 얇팍지식

 

#### R.COPY

print 'Start ##########################################' >> $logName

 

print "["`date +'%Y-%m-%d %H:%M:%S'`"] gzip start" >> $logName

 

find /oradata/archive/ -ctime -1 -name \*.dbf -print -exec /usr/contrib/bin/gzip {} >> $logName \;

 

print "["`date +'%Y-%m-%d %H:%M:%S'`"] rcp start" >> $logName

 

find /oradata/archive/ -ctime -1 -name \*.gz -print -exec rcp -p {} app@pmsprd10:/data/DBBackup/archive >> $logName \;

 

print 'End   ##########################################' >> $logName

 

exit 0