Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Mailing Lists -> Oracle-L -> RE: rdist Examples
Ethan,
Here is one my 'dist' scripts.
This sends files from HP Server to Sun Servers.
Check that last couple of lines.
HTH,
#----------------------------------------------------------------------------
# File Name: dist_all_to_SUN.rdist
#
# This is the distfile for 'rdist' to distribute scripts to SUN servers.
#
# by Kirti
#----------------------------------------------------------------------------
# HOSTS to contain all UNIX servers running Oracle Databases
HOSTS = (is008 sn024 sn050 snprod02)
#
# File names (with full path of repository directory) of the file(s) to distribute
# from local machine
#
FILES = ( /home/oracle/tools/backups/DIST/db_cloner.ksh
/home/oracle/tools/backups/DIST/db_cold_backup.ksh)
#
# Send files to target 'production' directories on the remote hosts
#
hosts: ${FILES} -> ${HOSTS}
install /vz/prod_scripts;
#-- End of file
-----Original Message-----
Sent: Monday, January 13, 2003 2:51 PM
To: Multiple recipients of list ORACLE-L
rdist is a good way to keep files (sql, tools, tnsnames) synchronized between servers, in my case I need to replicate
/db01/foo/* to /u01/foo/*
Going from /db01/foo to /db01/foo on a different server is easy but I can not find any examples of going to another directory structure. The docs are not very clear to me, sorry my IQ really isn't very high (never take an IQ test with your wife, once she finds out she is smarter things are never the same), anyway I ramble...
http://docs.sun.com/db/doc/805-3172/6j31br5lf?a=view
My rdist config file looks like this...
HOSTS=( bunnyfoofoo )
FILES=( /db01/foo/* )
(${FILES}) -> (${HOSTS})
install -R;
Here is what I run...
rdist -f rdist.txt -y -R
Works great, now how do I go from db01 to u01?
Thanks ahead of time.
Fat City Network Services -- 858-538-5051 http://www.fatcity.com San Diego, California -- Mailing list and web hosting services ---------------------------------------------------------------------To REMOVE yourself from this mailing list, send an E-Mail message to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing).
-- Please see the official ORACLE-L FAQ: http://www.orafaq.net -- Author: Deshpande, Kirti INET: kirti.deshpande_at_verizon.com Fat City Network Services -- 858-538-5051 http://www.fatcity.com San Diego, California -- Mailing list and web hosting services --------------------------------------------------------------------- To REMOVE yourself from this mailing list, send an E-Mail message to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing).Received on Mon Jan 13 2003 - 20:18:46 CST
![]() |
![]() |