1823759 Members
4432 Online
109664 Solutions
New Discussion юеВ

rsync for HPUX

 
Robin C. Querol
Occasional Advisor

rsync for HPUX

Can anybody help me find a rsync counterpart for HPUX? I need to synchronize a certain directory but I need the flexibility of not synchronizing files that are not updated. Thanks
9 REPLIES 9
Patrick Wallek
Honored Contributor

Re: rsync for HPUX

Well, how about rsync for HP-UX?

rsync v. 2.5.5
http://hpux.connect.org.uk/hppd/hpux/Networking/Admin/rsync-2.5.5/
twang
Honored Contributor

Re: rsync for HPUX

rdist: take a look at "man rdist"

rsync: can be easily use in script, and then run from cron

syntax to copy all the files from the /dir to the /dest on remote_host:
rsync /dir/* remote_host:/dest/
Zeev Schultz
Honored Contributor

Re: rsync for HPUX

Well,I can't speak with numbers but I think
rsync and rdist have the same performance
numbers.Rsync has the option of "integrated"
usage of ssh thus securing the traffic.Rdist
has the option to be used on many Unix flavors.
If one wants security - can be done by ssh forwarding of rdist.

Zeev
So computers don't think yet. At least not chess computers. - Seymour Cray
Tim D Fulford
Honored Contributor

Re: rsync for HPUX

try porting center http://hpux.connect.org.uk

I used rsync on HP-UX but could not get the port transfer to work. Using .rhosts & hosts.equiv was fine.

The reason why rsync is better than say rdist is because it will only copy the difference between the two images. Plus rsync has many more options built in (ssh etc). That is why I (tried to) use it.

If you do get it to work using the port menthod plesse could you update my thread

http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x7823eea29889d611abdb0090277a778c,00.html

Many thanks

Tim
-
Shermaine
Occasional Advisor

Re: rsync for HPUX

I had posted questions about Rsync before and was advise to look at rdist. Can someone show me a simple example of using rdist to sync two directory as I don't seems to get it to work after looking at man rdist.
Thanks alot.
H.Merijn Brand (procura
Honored Contributor

Re: rsync for HPUX

On the server side:

# cat /etc/rsyncd.conf
hosts allow = 198.16.74.23,217.22.73.0/24
use chroot = no
max connections = 2
pid file = /var/run/rsyncd.pid
uid = 9999
gid = 999

[share]
path = /var/pub/share
comment = My HP-UX server share
# rsync --daemon

On the client side

pc > cd mirror
pc > rsync -avz --delete your.server.com::share .

your.server.com can also be an internal LAN address or host name

Enjoy, Have FUN! H.Merijn [ Using above very often, but with other values of course ]
Enjoy, Have FUN! H.Merijn
Shermaine
Occasional Advisor

Re: rsync for HPUX

can someone advise on the following error:
"Host list in line 1 is degenerate"
while executing this
rdist -b -c /test_local/ :/test_dest/

Actually what i was trying to do is to make two directory identical but I want it to be able to compared the content of identical files too before overwriting as the dest folder could have a newer file than the source! Therefore rsync is not applicable here I suppose.
Thanks for the help.
Florian Heigl (new acc)
Honored Contributor

Re: rsync for HPUX

Hi,

I'm running rsync over my ~ directory

root@sourcehost:/home/me>cat Distfile
HOSTS = (targethost me@targethost)
FILES = ( /home/me/scriptstuff )

${FILES} -> ${HOSTS}
install -R;

in me's crontab You'd find:
30 08 * * * /usr/bin/rdist -y 2>&1 > /home/me/rdist.log
yesterday I stood at the edge. Today I'm one step ahead.
Geoff Wild
Honored Contributor

Re: rsync for HPUX

Why not use rdist?

HP-UX 11 and up come with rdist

rdist(1) rdist(1)

NAME
rdist - remote file distribution program

SYNOPSIS
rdist [ -bhinqvwyMR ] [ -f distfile ] [ -d var=value ] [ -m host ]
[ label... ]

rdist [ -bhinqvwyMR ] -c name... [ login@]host[:dest ]

DESCRIPTION
rdist facilitates the maintaining of identical copies of files over
multiple hosts. It preserves the owner, group, mode, and modification
time of files if possible and can update programs that are executing.


Rgds...Geoff
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.