Solved

HPUX ubuntu

Posted on 2011-03-08
10
508 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
Three Reasons Why Backup is Strategic

Backup is strategic to your business because your data is strategic to your business. Without backup, your business will fail. This white paper explains why it is vital for you to design and immediately execute a backup strategy to protect 100 percent of your data.

 
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

Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

Question has a verified solution.

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

SSH (Secure Shell) - Tips and Tricks As you all know SSH(Secure Shell) is a network protocol, which we use to access/transfer files securely between two networked devices. SSH was actually designed as a replacement for insecure protocols that sen…
I. Introduction There's an interesting discussion going on now in an Experts Exchange Group — Attachments with no extension (http://www.experts-exchange.com/discussions/210281/Attachments-with-no-extension.html). This reminded me of questions tha…
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…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

730 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