- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Remote copy file
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
Discussions
Discussions
Forums
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
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
тАО05-13-2009 09:45 PM
тАО05-13-2009 09:45 PM
Remote copy file
I have three servers ( serverA , serverB , serverC ) , they are in my network but different subnet , serverA and serverC can not directly connected to each other as no tunnel is established among them , while serverB can connect another two servers ( A and C ) .
Now , I have a schedule job to regularly copy file from serverA to serverC , as they are can not connected , I used to copy it to serverB first then finally to serverC ( run another batch from server B ) , but I found that the server system time will be varied ( may be a fwe seconds after a period of time ) , so that the file even copied to serverC but maybe not in the same date ,
can advise if I want the copy process ( from serverA to server B then to serverC ) by ONE single script , what can i do ? thx
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-13-2009 09:51 PM
тАО05-13-2009 09:51 PM
Re: Remote copy file
Once it is on B, you can use remsh/ssh to use any of the above to copy to C.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-13-2009 09:56 PM
тАО05-13-2009 09:56 PM
Re: Remote copy file
A Forum search for, say,
tar pipeline
should find many examples (some better than
others).
This assumes that a user on system B can use
ssh or rsh/remsh to run a process on systems
A and C.
> [...] so that the file even copied to
> serverC but maybe not in the same date [...]
Copied how?
Why not add some routes and do things the
easy (direct) way? If B can talk to A and C,
then is there any good reason that A can't
talk directly to C?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-13-2009 10:00 PM
тАО05-13-2009 10:00 PM
Re: Remote copy file
-p (preserve permissions) Causes cp to preserve in the copy as
many of the modification time, access time, file mode, user
ID, and group ID as allowed by permissions.
otherwise tar will be best option, thanks,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-15-2009 10:34 PM
тАО05-15-2009 10:34 PM
Re: Remote copy file
# tar cvf - file | ssh hp01a01.w1 "cd \
/root;tar xfv - file"
If I were you, I would write a script on machine B to fetch the file from A and then pass it to system C, this requires ssh key-based authentication. Or just set up routing...
Unix operates with beer.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-15-2009 11:21 PM
тАО05-15-2009 11:21 PM
Re: Remote copy file
rcp, ftp, scp
u can use all these commands
thanks and regards
Sajjad Sahir
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-15-2009 11:59 PM
тАО05-15-2009 11:59 PM
Re: Remote copy file
rcp -p hosta:/sourcedir/file hostc:/targetdir/file
executed on server B do the job ?
Volker