• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 528
  • Last Modified:

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?
0
JeffBeall
Asked:
JeffBeall
  • 5
  • 3
  • 2
2 Solutions
 
svsCommented:
You could use tar, on Ubuntu it has --keep-newer-files option.

Better fix that rsync problem, though.
0
 
JeffBeallAuthor Commented:
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
 
svsCommented:
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
Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

 
Alberto CortesCommented:
Answer:

     scp -rp /path_to_local_dir user@dest_server:/path_to_dest_dir
0
 
JeffBeallAuthor Commented:
i dont have scp on the HPUX box
0
 
svsCommented:
Do you have ssh on it?
0
 
JeffBeallAuthor Commented:
no, i don't have that either.
0
 
Alberto CortesCommented:
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
 
JeffBeallAuthor Commented:
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
 
JeffBeallAuthor Commented:
thanks for the suggestions
0

Featured Post

Upgrade your Question Security!

Add Premium security features to your question to ensure its privacy or anonymity. Learn more about your ability to control Question Security today.

  • 5
  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now