[2 days left] What’s wrong with your cloud strategy? Learn why multicloud solutions matter with Nimble Storage.Register Now

x
?
Solved

HPUX ubuntu

Posted on 2011-03-08
10
Medium Priority
?
521 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 1000 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
Will your db performance match your db growth?

In Percona’s white paper “Performance at Scale: Keeping Your Database on Its Toes,” we take a high-level approach to what you need to think about when planning for database scalability.

 
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 1000 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

Get your Conversational Ransomware Defense e‑book

This e-book gives you an insight into the ransomware threat and reviews the fundamentals of top-notch ransomware preparedness and recovery. To help you protect yourself and your organization. The initial infection may be inevitable, so the best protection is to be fully prepared.

Question has a verified solution.

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

Join Greg Farro and Ethan Banks from Packet Pushers (http://packetpushers.net/podcast/podcasts/pq-show-93-smart-network-monitoring-paessler-sponsored/) and Greg Ross from Paessler (https://www.paessler.com/prtg) for a discussion about smart network …
In the first part of this tutorial we will cover the prerequisites for installing SQL Server vNext on Linux.
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
Suggested Courses

649 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