- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- scripting help
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-21-2002 12:35 AM
08-21-2002 12:35 AM
I have a scripting requirement where I have to clone Oracle applications from one machine to the other. We use rcp to copy files from one machine to the other. Due to network reasons if rcp is hung or exits without copying all the files we will have to re-initiate rcp and our down-time window will not be sufficient in this case. So what Iam looking at is some kind of remote copy program which allows me to copy and resume aborted copy from the point of break. Any ideas greatly appreciated.
Thanks,
Alle
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-21-2002 12:45 AM
08-21-2002 12:45 AM
Re: scripting help

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-21-2002 12:47 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-21-2002 12:59 AM
08-21-2002 12:59 AM
Re: scripting help
I think the ftp is a good option but I would use shar instead of tar.
Compress the output file
ftp it
uncompress it
sh it
See man shar
Remember you need to do the ftp on the destination machine.
reget remote-file [local-file]
reget acts like get, except that if local-file exists and is
smaller than remote-file, local-file is presumed to be a
partially transferred copy of remote-file and the transfer is
continued from the apparent point of failure. This command is
useful when transferring very large files over networks that tend
to drop connections.
Thus before each new transfer remove or better nullify the destination file
Steve Steel
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-21-2002 01:13 AM
08-21-2002 01:13 AM
Re: scripting help
If you have say 10 Gig of data to move then break it down into say 20 1/2 gig files, so if the rcp/ftp fails then on the recipient server it is a simple matter to check how many files got there and recopy the ones missed.
It would be very simple to write a script to check the status of this and automatically either gets of put the missing files.
I would cron the check script and also get it to inform on failures of the copy.
HTH
Paula
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-21-2002 01:20 AM
08-21-2002 01:20 AM
Re: scripting help
As example:
http://forums.itrc.hp.com/cm/QuestionAnswer/1,11866,0x3bc1119c3420d411b66300108302854d,00.html
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-21-2002 04:32 AM
08-21-2002 04:32 AM
Re: scripting help
The time can even be more if tar extract fails with unexpected EOF occured. (I had very bad experience with error ).
Iam planning to write a scrit, but this script depends on the remote copy program which I use. I wall have total control if I generate a listing from
# find /apphome -name -print > list.out
and copy list.out to the remote machine and initiate copy and do checksum before and after copy.
But, I was thinking of performance implications if initiate rcp for file which present in list.out individually.
Please advice.
Thanks,
Allen
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-21-2002 04:48 AM
08-21-2002 04:48 AM
Re: scripting help
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-21-2002 04:57 AM
08-21-2002 04:57 AM
Re: scripting help
You are just copying oracle applications and not database files, right?
live free or die
harry
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-21-2002 05:14 AM
08-21-2002 05:14 AM
Re: scripting help
mkdir /ora_tmp
mount -o ro srv1:/ora_base_dir /ora_tmp
cd /ora_tmp
find . -depth -print|cpio -padlmuxv /ora_base_dir
If you dont want to see the output of each copied file, remove the "v" from cpio options.
Regards,
Shannon