- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- scp -C does not seem to compress
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
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
тАО08-21-2006 11:54 AM
тАО08-21-2006 11:54 AM
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-21-2006 12:19 PM
тАО08-21-2006 12:19 PM
SolutionBasically, this is allowing you to copy less data, but it does not actually create a compressed file at the destination.
Have a look at the compression sections of the SSH man page for more info.
If you want to compress, and have the file wind up being gzip'ed at the destination, you could try something like this:
gzip < afile > - | scp - host:/dest/dir/afile.gz
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-21-2006 01:02 PM
тАО08-21-2006 01:02 PM
Re: scp -C does not seem to compress
Note that gzip will read stdin and output to stdout so it is possible to setup a pipeline to send these files.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-22-2006 02:02 AM
тАО08-22-2006 02:02 AM
Re: scp -C does not seem to compress
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-22-2006 02:06 AM
тАО08-22-2006 02:06 AM
Re: scp -C does not seem to compress
gzip < afile > - | scp - host:/dir/file.gz
What the above does is:
Takes the file afile and redirects it as input into gzip, then redirects the output (the gzipped file) to stdout, which is then piped to scp as the source file and copied to the destination.
The '-' characters are valid operators. Give it a try on a test file and I think you'll see that it works pretty well.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-22-2006 02:10 AM
тАО08-22-2006 02:10 AM
Re: scp -C does not seem to compress
swlist -l | gerp -i secure
What version of Secure Shell are you using.
There have been some serious problems with recent releases ported by HP.
Its better in this case to compress the file as Patrick recommends.
Its also good to make sure you have a recent version of Secure Shell installed.
http://software.hp.com
Current version is broken but a new version is promised by month end.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-22-2006 02:35 AM
тАО08-22-2006 02:35 AM
Re: scp -C does not seem to compress
If you have concerns about file integrity, you can compare the cksum of the original file to that of the copy:
# [[ "$(cksum afile)x" = "$(gunzip -c file.gz | cksum)x" ]] && echo "good" || echo "data corruption"
PCS
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-22-2006 05:45 AM
тАО08-22-2006 05:45 AM
Re: scp -C does not seem to compress
ssh fssctprod 'gzip /home/oracle/refresh/test.dbf > - | scp - fsscttest:/home/oracle/refresh_mmc/test.dbf.gz >/dev/null'
because the script executing this cmd sits on fsscttest.
In reply to Mr. Protter, I don't have access to "swlist" so I will have to refer that to our UNIX admins.
Spex -- the checksum is a very useful incorporation to certify the copies.
If I could take one thing with me into the next world it would be my valid login to this forum. I am so grateful for your knowledgeable help.
Gil