To work around this problem, use the following syntax instead:
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ # NOTE: if you are transfering dump files to a Solaris 8 box, # you need to tar and pipe the files to the receiving server. # Make sure you cd to the directory first, before attempting # to tar and ssh them. # Vegard K, 25.02.2010 #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ #!/usr/bin/bash cd /oracle/datapump/ tar cEf - dmpfile_01.dmp | ssh prodserver1 "cd /oracle/backup/datapump; tar xf -" exit $?
No comments:
Post a Comment