- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: send gzip -c output across network
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
тАО04-06-2009 12:59 PM
тАО04-06-2009 12:59 PM
ssh serverA "gzip -c /oracle/archive/arch_FXPROD_2_12839_641074683.arc > /oracle/archive/arch_FXPROD_2_12839_641074683.arc.gz"
scp serverA:/oracle/archive/arch_FXPROD_2_12839_641074683.arc.gz /oracle/archive/.
gunzip /oracle/archive/arch_FXPROD_2_12839_641074683.arc.gz
ssh serverA "rm /oracle/archive/arch_FXPROD_2_12839_641074683.arc.gz"
The overall result is to send the file across the network compressed. At the end the .gz file at the target is uncompressed, and the .gz file at the source is deleted.
I don't want to use "scp -C" because testing on my system has shown the above steps accomplish the transfer about 66% faster than "scp -C" and all we are concerned about is minimizing use of bandwidth. The time it takes to gzip on the source side doesn't matter in this situation.
I just wondered if there was a more elegant solution to just sort of send the output of "gzip -c" across the network directly.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-06-2009 01:28 PM
тАО04-06-2009 01:28 PM
Solutionhttp://forums.itrc.hp.com/service/forums/questionanswer.do?threadId=1222875
If you don't like the benefits offered by
"tar", then toss the "tar", and use "cat" or
input redirection.
If you have doubts about the "cd" commands
failing, then "&&" might be better than ";"
in there.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-06-2009 02:46 PM
тАО04-06-2009 02:46 PM
Re: send gzip -c output across network
ssh serverA "gzip -c /oracle/archive/arch_FXPROD_2_12839_641074683.ar" | gunzip > /oracle/archive/arch_FXPROD_2_12839_641074683.arc
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-06-2009 08:27 PM
тАО04-06-2009 08:27 PM
Re: send gzip -c output across network
cat would only be needed if the file is > 2 Gb, unless you have a large file capable gzip.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-07-2009 08:00 AM
тАО04-07-2009 08:00 AM