taring between solaris and linux

From: Dilip M (dilipm_79@yahoo.com)
Date: Thu Jun 12 2003 - 09:51:11 EDT


Hi,
Small query from my side ...
You have mentioned one of cpio option..
find / -xdev -print | cpio -ocv -O /export/home/OS.cpio

Do this maintain permissions ??? Consider a example

I have a two machine One is sun and other is linux.
The linux's machine /export/<directory> is shared across the n/w and i can access
/export/<directory> of linux from any other machine /net direcory.

Now i need to copy a directory which is on Solaris to linux box with same links ,
permissions , block size...

On solaris box the permissions are as folloews:

ls -l /export/<directory>
drwxrwxr-x 2 nobody nobody 512 Feb 12 2002 <directory1>
drwxrwxr-x 3 nobody nobody 512 Apr 8 2002 <directory2>

Now i need to copy this /export/<directory>/* to /net/export/<directory>

NOTE***
Here /net/export/<directory> is a linux box!!

I tried with cpio and tar -p option alo...everything went fine...but permissions was
changed !! :((

Also spent a day on google and did
cd /export/<directory>

tar cf - . | (cd /net/export/<directory> && tar xf -)

The copied files permissionsAll went fine except the prmissions :((
It was not gettig retained to 'nobody',but was getting changed to mine eff uid

How could i retain the permissions too....

kindly advice :)

-Dilip

__________________________________
Do you Yahoo!?
Yahoo! Calendar - Free online calendar with sync to Outlook(TM).
http://calendar.yahoo.com
_______________________________________________
sunmanagers mailing list
sunmanagers@sunmanagers.org
http://www.sunmanagers.org/mailman/listinfo/sunmanagers



This archive was generated by hypermail 2.1.7 : Wed Apr 09 2008 - 23:26:34 EDT