- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- script for copying data from production to DR serv...
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
тАО11-28-2008 03:50 AM
тАО11-28-2008 03:50 AM
I need to copy some data from production to DR server.
This is the criteria. At this moment there are around 90000 files in production server starting with MP* and around 30000 files are copied to DR manually.
We need to sync both first and then we need to put a script in place which will check if the filesystems are in sync in terms of MP* files. if not it will copy the file which has been generated recently in production.
The files should not be overwritten.
thanks and regards
Amit Manna
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-28-2008 04:31 AM
тАО11-28-2008 04:31 AM
Solutionrsync must be downloaded from the HP software site, specifically from the Internet Express collection of programs:
http://h20392.www2.hp.com/portal/swdepot/searchProducts.do
One additional consideration is the amount of data that will be transmitted each day. Make sure that the link is fast enough to keep up with the new and changed data. This is easy to overlook with a fast network in production.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-28-2008 06:20 AM
тАО11-28-2008 06:20 AM
Re: script for copying data from production to DR server
I attach you a file that gives tips for rsync and other copy commands.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-28-2008 06:34 AM
тАО11-28-2008 06:34 AM
Re: script for copying data from production to DR server
thanks for your reply. But rsync is now allowed in our environment.
Is there any other way to do it
regards
Amit
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-28-2008 08:02 AM
тАО11-28-2008 08:02 AM
Re: script for copying data from production to DR server
it is one of the most widely used sync tools out there.
if you can't use it, then rdiff is probably out as well.
two remaining choices would be purchase commercial software or build your own package. the later is not neccessarily a trivial task...
and as noted previously, its not going to necessarily be the number of files, but the size of them.
google "remote file syncronization" will give you some leads.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-28-2008 08:09 AM
тАО11-28-2008 08:09 AM
Re: script for copying data from production to DR server
it will do it, but irrc, it transmits complete files when they change. rsync transmits the differences, which should make rsync more efficient bandwidth wise.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-28-2008 04:12 PM
тАО11-28-2008 04:12 PM
Re: script for copying data from production to DR server
If your company spent the money on a DR site, then purchase NCftp which is ideal for sending files efficiently. It supports subdirectory recursion and will even create a temporary name during the transfer. When the desired filename has been completely transferred, the name will appear in the directory. This solves problems with partial transfers being used too soon.
However, don't be concerned about scp speed until you know what your slowest link speed to DR will be. A slow link will be the biggest problem for a DR site.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-28-2008 05:10 PM
тАО11-28-2008 05:10 PM
Re: script for copying data from production to DR server
Are you sure you have to do it manually....which storage u r using??just check if there is any utility already there u r not aware of.....
If its not there ftp can help you out.....
BR,
Kapil+
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-20-2009 07:18 AM
тАО01-20-2009 07:18 AM
Re: script for copying data from production to DR server
thanks for your input. Do we need to install ssh as well for this
and how can we send some selective files?/
regards
Amit Manna
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-20-2009 07:57 AM
тАО01-20-2009 07:57 AM
Re: script for copying data from production to DR server
I use an rsync over ssh (rsync -e ssh) solution to keep several DR servers in sync with their production counterparts on a government network. It was quickly setup after downloading the above rsync depot and adding a simple script to cron to run it nightly.
I'd check with someone on your policy as rsync is different than the other 'r' commands because of this. You can also use ssh key-based authentication to automate the login info too.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-20-2009 04:40 PM
тАО01-20-2009 04:40 PM
Re: script for copying data from production to DR server
For security, you can use ssh as the transport and now the data will be encrypted over the link.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-20-2009 10:43 PM
тАО01-20-2009 10:43 PM
Re: script for copying data from production to DR server
>Do we need to install ssh as well for this
>and how can we send some selective files?/
You need: HP-UX Secure Shell
It could be also that SSH is already available on your system.
To check:
SERVER1:>which ssh
/usr/bin/ssh
SERVER1:>
To do the selective copy, you can used wildcards or do a find-copy.
if you need any further assistance, please let us know.
kind regards
yogeeraj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-22-2009 06:54 AM
тАО01-22-2009 06:54 AM
Re: script for copying data from production to DR server
We installed ssh and rsync and after that our Security team says we cannot use ssh and rsync. Any other alternative solution for this?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-22-2009 07:06 AM
тАО01-22-2009 07:06 AM
Re: script for copying data from production to DR server
HTH
Duncan
I am an HPE Employee

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-22-2009 07:35 AM
тАО01-22-2009 07:35 AM
Re: script for copying data from production to DR server
But, you should ask them in which manor they'd prefer the files to be moved between servers.
There are several solutions, some more secure then others, to this.
1. You can use rsync (which can be made to use TLS/SSL or just ssh-tunnel it.)
2. You can use sftp/scp (which uses ssh)
3. You can use ftp (unencrypted)
4. You can use NFS or similiar (see cifs) (can be encrypted, but gets horribly slow in my experience)
5. You can use a USB device, but I doubt you wanna run down and move it all the time :P
There probably is alot more ways to do it, but these are the ones I can tell you off the top of my head.
Basically if you need to sync the source and destination then rsync is your best option. I seem to remember that there is some other opensource software that is like rsync but has full support for SSL/TLS and support for SSH transfer... but I can't seem to remember it's name.
Best regards
Fredrik Eriksson
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-22-2009 07:44 AM
тАО01-22-2009 07:44 AM
Re: script for copying data from production to DR server
The servers are in KEON. and KEON does not support ssh. I am not sure how to go forward
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-23-2009 08:57 AM
тАО01-23-2009 08:57 AM
Re: script for copying data from production to DR server
I don't think most people here will know what KEON is. I looked for the acronym, but couldn't find it.
If you use rsync to transfer very large files - you may want to turn off the differential aspect of rsync and just transfer it completely.
rsync is efficient, NOT fast (and then you throw in encryption as well, slowing it down further). So when not using slow links, it may be faster to transfer the whole thing. Just add the -W option.
I agree with others - if ssh can't be used, how can you connect to the server without transmitting your password in the clear across the network for all the world to see and copy and use?
If you're not using encryption, you might as well not use passwords at all.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-23-2009 08:58 AM
тАО01-23-2009 08:58 AM
Re: script for copying data from production to DR server
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-23-2009 09:07 AM
тАО01-23-2009 09:07 AM
Re: script for copying data from production to DR server
So I guess the questions that need answered:
1) how are you allowed to connect to these servers?
2) what recommendations does you "security team" have, since they keep shooting things down?
3) What recommendation does the var for the security software have (if any)?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-23-2009 09:07 AM
тАО01-23-2009 09:07 AM
Re: script for copying data from production to DR server
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-28-2009 05:41 AM
тАО01-28-2009 05:41 AM
Re: script for copying data from production to DR server
Can we use the rsync option without ssh.
Regards
Amit Manna
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-28-2009 06:44 PM
тАО01-28-2009 06:44 PM
Re: script for copying data from production to DR server
Yes. The default is to copy the data without encryption. rsync must be installed on both systems (source and destination).
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-29-2009 12:23 AM
тАО01-29-2009 12:23 AM
Re: script for copying data from production to DR server
But as Bill says, you can just use rsync between the systems without the encryption of ssh - in this case rsync just uses remsh (which of course isn't a very secure protocol at all and requires a completely open "trust" between the systems and sends data in clear)
You could of xourse use rsync with remsh, and then create an IPSEC tunnel between tghe 2 systems. Probably more complex to manage and maintain than ssh, but would at least prevent the transmission of unencrypted data.
Manuals for using IPSEC are here:
http://docs.hp.com/en/J4256-90015/index.html
HTH
Duncan
I am an HPE Employee
