Pages

Tuesday, April 19, 2022

How to set RSYNC commands and set it in a crontab

How to set RSYNC commands and set it in a crontab

Crontab Entries:

crontab -l

*/30  *  *  *  * sh /u02/oracle/archsynch.sh
*/45 * * * * sh /u02/oracle/qfhcrmarchsynch.sh

Above sync commands will execute at every 30 and 45 minutes.

Below RSYNC Commands will be useful.

cat /u02/oracle/archsynch.sh
rsync -e ssh -Pazv /u03/archives/qprod oracle@192.168.1.50:/u03/archives/

cat /u02/oracle/qfhcrmarchsynch.sh
rsync -e ssh -Pazv /u03/archives/qdrum oracle@192.168.1.51:/u03/archives/

No comments:

Post a Comment