Jun 17, 2008, 6:47 AM
Post #4 of 6
Yes, I accidentially left off the last part. Actually, I'm going to be using rsync instead of cp since I'm going from 1 server to another keeping same directory structure but wanted to be able to use this perlscript as a utility to run on any server giving it the 2 arguments to construct the directories.
rsync /opt/oracle/oradata01/redo1.dbf destinationserver:/opt/oracle/oradata01/redo1.dbf
rsync /opt/oracle/oradata01/control1.dbf destinationserver:/opt/oracle/oradata01/control1.dbf
rsync /opt/oracle/oradata02/redo1.dbf destinationserver:/opt/oracle/oradata02/redo1.dbf
rsync /opt/oracle/oradata03/subdir/usertablespace.dbf destinationserver:/opt/oracle/oradata03/subdir/usertablespace.dbf