The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Operating Systems > HP-UX
.
google unix.com



HP-UX HP-UX (Hewlett Packard UniX) is Hewlett-Packard's proprietary implementation of the Unix operating system, based on System V.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
scp not preserving properties and links PasadenaDave Debian 3 08-06-2009 02:38 AM
Preserving whitespace in a for loop s_becker Shell Programming and Scripting 7 03-26-2009 03:09 PM
Add HDs while preserving the data mhenry SCO 3 10-13-2008 05:20 AM
properties for vi shriashishpatil UNIX for Dummies Questions & Answers 2 04-20-2007 01:27 PM
Preserving Ownership w/tar bergerj3 Filesystems, Disks and Memory 1 02-05-2002 11:53 PM

Reply
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 08-06-2009
PasadenaDave PasadenaDave is offline
Registered User
  
 

Join Date: Aug 2009
Posts: 4
SCP not preserving properties, no rsync ?

I'm trying to get a number of old disks on HP-UX 10.2 copied over to a new Debian machine which has a NAS on it.

The HP does not have rsync, but does have scp. Scp unfortunately does not always preserve permissions, and does not save links which were on the disk.

Apparently rsync has a flag for saving links as is.. Does anybody know if there is any flag for scp to do that (Not in the man pages..)

Otherwise, has anybody here used rsync on HP-UX 10.2 ? Any problems with it?

Thanks in advance!!

---------- Post updated at 09:20 PM ---------- Previous update was at 08:05 PM ----------

PS: scp -rp is what I've tried.. Does not always save permissions, ownership or group..

Anybody have experience with rsync on HP-UX ?

Tia!
  #2 (permalink)  
Old 08-06-2009
jim mcnamara jim mcnamara is offline Forum Staff  
...@...
  
 

Join Date: Feb 2004
Location: NM
Posts: 5,717
The group and user numbers on the source have to exist on the destination side.
ie., username joe 1142:206 has to exist on the other side for scp -p to work fully. scp -p will keep the existing mode bits straight regardless.

rsync at the porting centre:
Porting And Archive Centre For HP-UX

---------- Post updated at 04:49 ---------- Previous update was at 04:39 ----------

Consider reading the ftp RFP's -

421 means the server on the remote side closed the connection. This doesn't happen by accident. There is always a reason. The most usual reason is a timeout limit on connections imposed on the remote side.

try something like this:
Code:
>ftplog
for file in myfiles*
do
ftp -n <<EOF >> ftplog
OPEN somenode
USER username pswd
cd /somewhere
put $file
bye
EOF
done
one at a time.
  #3 (permalink)  
Old 08-06-2009
PasadenaDave PasadenaDave is offline
Registered User
  
 

Join Date: Aug 2009
Posts: 4
Thanks, the user and group IDs (in sync) do exist on the other side..
Reply

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 09:53 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0