- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Script for replication
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
12-28-2012 01:24 AM
12-28-2012 01:24 AM
Hi ,
Am looking for a script to replicate files between DC n DR
We have s structure say /test1 where many subfolders are there and the sme gets updated , can i transfer only the updated contents from Dc to DR via script say running in cron evry 15 min.
I tried newer option , but it just chokes the B/W , any other method to replicate the same.
we have a link of 45 Mbps
Ex : any file gets updated in DC /test1/temp.txt should be ftp'd to DR /test1/temp.txt
both hpux servers 11iv2.
rx2660
4c/16gb
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-28-2012 01:36 AM - edited 12-28-2012 01:39 AM
12-28-2012 01:36 AM - edited 12-28-2012 01:39 AM
Re: Script for replication
Have you looked into using rsync?
>I tried -newer option, but it just chokes the B/W
With find? This should be the minimum number of files to copy.
(What is B/W, bandwidth?)
You could also gzip the files before copying them. If there are lots of small files, you could also tar them up.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-28-2012 03:01 AM
12-28-2012 03:01 AM
Re: Script for replication
Hi Dennis,
Can i use rsync for the wholemount point.
Suppose my application is writing in a /test/wer/1 directory and many other subdirectory too.
Is it fine if i just do the following and put it in cro afetr evry 15 min.
rsync -zrv --include="*.*" server1:/test/wer/1 /test/wer/1
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-28-2012 03:24 AM - edited 12-28-2012 03:33 AM
12-28-2012 03:24 AM - edited 12-28-2012 03:33 AM
Solution>Can I use rsync for the whole mount point.
Yes. Or many of them.
>Is it fine if I just do the following and put it in cron after every 15 min.
>rsync -zrv --include="*.*" server1:/test/wer/1 /test/wer/1
You want to pull from server1? And you only want to include files with a "."?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-01-2013 09:20 AM
01-01-2013 09:20 AM
Re: Script for replication
rsync works like a charm