Solved

HPUX ubuntu

Posted on 2011-03-08
10
510 Views
Last Modified: 2012-05-11
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?
0
Comment
Question by:JeffBeall
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 5
  • 3
  • 2
10 Comments
 
LVL 9

Expert Comment

by:svs
ID: 35071367
You could use tar, on Ubuntu it has --keep-newer-files option.

Better fix that rsync problem, though.
0
 
LVL 1

Author Comment

by:JeffBeall
ID: 35071439
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.
0
 
LVL 9

Accepted Solution

by:
svs earned 250 total points
ID: 35097319
You don't need mounted directories to use tar, you can use pipes and ssh, like so:

hpux# tar -cf - ... | ssh ubuntu tar -C ... --keep-newer-files -xf -

Open in new window

0
The Orion Papers

Are you interested in becoming an AWS Certified Solutions Architect?

Discover a new interactive way of training for the exam.

 
LVL 3

Expert Comment

by:Alberto Cortes
ID: 35112687
Answer:

     scp -rp /path_to_local_dir user@dest_server:/path_to_dest_dir
0
 
LVL 1

Author Comment

by:JeffBeall
ID: 35140449
i dont have scp on the HPUX box
0
 
LVL 9

Expert Comment

by:svs
ID: 35140760
Do you have ssh on it?
0
 
LVL 1

Author Comment

by:JeffBeall
ID: 35141293
no, i don't have that either.
0
 
LVL 3

Assisted Solution

by:Alberto Cortes
Alberto Cortes earned 250 total points
ID: 35141749
If you do not have ssh, then you do not have scp. Use rcp instead:
rcp -rp /path_to_local_dir user@dest_server:/path_to_dest_dir
0
 
LVL 1

Author Comment

by:JeffBeall
ID: 35142196
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?
0
 
LVL 1

Author Closing Comment

by:JeffBeall
ID: 35180614
thanks for the suggestions
0

Featured Post

The Eight Noble Truths of Backup and Recovery

How can IT departments tackle the challenges of a Big Data world? This white paper provides a roadmap to success and helps companies ensure that all their data is safe and secure, no matter if it resides on-premise with physical or virtual machines or in the cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Fine Tune your automatic Updates for Ubuntu / Debian
Google Drive is extremely cheap offsite storage, and it's even possible to get extra storage for free for two years.  You can use the free account 15GB, and if you have an Android device..when you install Google Drive for the first time it will give…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

728 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question