- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: "Mirror" some directories of 1st disk into 2nd...
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
07-21-2003 12:19 AM
07-21-2003 12:19 AM
"Mirror" some directories of 1st disk into 2nd disk?
I'm newbie with HP-UX admin.
We have 2 workstations with HP-UX 11.00. In the 1st, we have some directories which contain working data. I would like to make a "copy" of some directories in the 1st workstation in the 2nd. So I'm looking for a program with cron job to copy updated files (not all files) from 1st to 2nd every night, it's possible ?
If yes, how to do that please ?
Thank you very much,
Regards,
NDQ
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-21-2003 12:57 AM
07-21-2003 12:57 AM
Re: "Mirror" some directories of 1st disk into 2nd disk?
1)
# lvextend -m 1 /dev/vg03/lvol12 /dev/dsk/c5t2d0
# lvextend -m 1 /dev/vg03/lvol13 /dev/dsk/c5t2d0
2) vgcfgbackup /dev/vg03
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-21-2003 01:05 AM
07-21-2003 01:05 AM
Re: "Mirror" some directories of 1st disk into 2nd disk?
i suggest you to use rsync, a free enhancement of rcp, that can do incremental copy, and is very fast.
Free download at
http://hpux.connect.org.uk/
and very easily scriptable. Must ne installed on both nodes, but it wortch it.
HTH,
Massimo
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-21-2003 01:09 AM
07-21-2003 01:09 AM
Re: "Mirror" some directories of 1st disk into 2nd disk?
No point please!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-21-2003 01:12 AM
07-21-2003 01:12 AM
Re: "Mirror" some directories of 1st disk into 2nd disk?
if you wuold go with rsync, here is an example of the sintax:
on DEST_SERVER
# cd /new/destination/directory
# /tmp/rsync64 -azvHgDSx --rsync-path=/tmp/rsync64 -P
IP.OF.OTHER.SERVER:$PWD/. .
I specified /tmp/rsync64 because that was the path in which the executable was put, and was built ad hoc.
Massimo
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-21-2003 01:13 AM
07-21-2003 01:13 AM
Re: "Mirror" some directories of 1st disk into 2nd disk?
It would probably be the easiest way.
man exports (for how to configure the sharing)
I would recomend find and cpio for the copy part.
(example on how it could look : find /source -print |cpio -pdumv /destination)
man find
man cpio
and you will probably need to learn som basic scripting.
man ksh or sh
and offcource how to use crontab:
man crontab
happy reading =)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-21-2003 01:27 AM
07-21-2003 01:27 AM
Re: "Mirror" some directories of 1st disk into 2nd disk?
I'll try your sugguestion.
Thanks,
NDQ
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-22-2003 02:18 AM
07-22-2003 02:18 AM
Re: "Mirror" some directories of 1st disk into 2nd disk?
You also have a "standard" powerfull tool to do it on all HP-UX systems : rdist. Have a look to the man pages.
Regards.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-22-2003 02:41 AM
07-22-2003 02:41 AM
Re: "Mirror" some directories of 1st disk into 2nd disk?
rsync is OK (but I could not get it to work using port method but it was fine using rcp)
How about a cron job using the following...
On target mc
# cd
What it does is tar, gzip, gunzip & untar the info in one go over the network. It is no less secure than rsync as you need equivalences for both (though you can use ssh for rsync)
Regards
Tim