Link to home
Start Free TrialLog in
Avatar of JeffBeall
JeffBeallFlag for United States of America

asked on

HPUX ubuntu

I want to copy two directories from my HPUX box to my Ubuntu box. I would like to do a full copy

cp -r /source /destination

and then copy only modified files since the full copy.
I tried rsync but it won't work in my setup. so is there a way to accomplish this without rsync?
Avatar of svs
svs
Flag of Afghanistan image

You could use tar, on Ubuntu it has --keep-newer-files option.

Better fix that rsync problem, though.
Avatar of JeffBeall

ASKER

I can't mount the directories on the ubuntu box, i have to mount ubuntu nfs shares to the HPUX box. and i guess the HPUX box only has the cp command. I know the HPUX box doesn't have rsync. also - the HPUX box is a production crucial server - so i am reluctant to add things to it such as rsync. if somehow i screwed something up installing rsync and the server goes down - i would probably be looking for a new job.
ASKER CERTIFIED SOLUTION
Avatar of svs
svs
Flag of Afghanistan image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Answer:

     scp -rp /path_to_local_dir user@dest_server:/path_to_dest_dir
i dont have scp on the HPUX box
Do you have ssh on it?
no, i don't have that either.
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
RicoCebiche  I DO have rcp! does the command you provided mean it will copy only changed files? so - for instance - i could copy the entire directory - then copy only changed files? Also, does the rcp command do recursive copies?
thanks for the suggestions