- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: copying files to a remote server
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
02-08-2006 08:51 AM
02-08-2006 08:51 AM
copying files to a remote server
We currently use our test server as a DR server for production. Both servers are located in the same data center ( for now) and the nightly backup files are copied from the production server to the test server. The total amount of data copied is 7G. The production server has an NFS mount of a filesystem on test and the transfer is done using the a cp -R command.
This all works fine and take about 12 min to copy the data.
We are planning on moving our test server to another location ( a few hundred miles away) and will still need to copy the data every night. In doing tests to another server located at the new location I can transfer about 1G an hour.
Does anyone have any suggestions on how to improve the copy rate.
Would tar or cpio work better that cp?
Are there any options that could help?
The connection is over a wide area network.
I've tried submitting multiple copy jobs at once from the source system, but the rate actually appears to be slower.
Any thoughts/ suggestions would be appreciated.
Thanks,
Patti
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-08-2006 08:58 AM
02-08-2006 08:58 AM
Re: copying files to a remote server
cp and other commands you have mentioned will copy the files from source to destination whether or not the source have changed since the last copy.
Consider implementing rdist or rsync, using which you can keep two filesystems/dirs in sync between the systems.
But relying on the basic OS utilities is not how I would architect a DR solution.
Sundar.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-08-2006 09:00 AM
02-08-2006 09:00 AM
Re: copying files to a remote server
You might try creating a compressed tarball of the files that you want to transfer; copy the compressed archive, uncompress and un-tar it.
You could easily script the whole process so that with 'remsh' you only need to launch the script on the sending server.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-08-2006 09:03 AM
02-08-2006 09:03 AM
Re: copying files to a remote server
The files that I'm copying are already compressed. (using compress)
Is there any difference between using a cp command - or a tar with the file being created on the NFS mounted directory?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-08-2006 09:13 AM
02-08-2006 09:13 AM
Re: copying files to a remote server
Unless ALL or MOST of the files that you are shipping each day have changed, you'll save a lot of time with rsync instead.
check it out at...
http://hpux.cs.utah.edu/hppd/hpux/Networking/Admin/rsync-2.6.4/
Of course, you can use tar to go between, and even compress the data in the pipe stream. If you decide that you'd really like *that* answer then:
Set up keyed ssh (rsa or dsa) on both servers.
Go to the source directory (assuming /productiondir).
cd /productiondir
tar cvf - . | compress | ssh
If you've got "gzip" you can substitute that instead and you can vary the level of compression to fine tune it for the max throughput, though on a wan, I'd guess that the max compression might give the max throughput.
You'll probably see better performance with gzip than with the old standard compress program.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-08-2006 09:15 AM
02-08-2006 09:15 AM
Re: copying files to a remote server
So, once ssh is set up,
it's just
cd /productiondir
tar cvf - . | ssh