Operating System - HP-UX
1834789 Members
3016 Online
110070 Solutions
New Discussion

ATTN: Bassey essien - cpio question

 
Maureen Gunkel
Trusted Contributor

ATTN: Bassey essien - cpio question

I replied to your original question, but cannot see the replies. So, here goes your original question plus my answer. Maybe others can help too!
---------------------------------------
does any know the simplest way of copying data
from old disk to new disk using cpio command. what options will facilitates copying entire directory tree from old PV to new VG.
Iam not acquainted with cpio, but i think this is what i need in other to move datas from the old PV to the new volume groups.
Thanks.
------------------------------------------
Bassey,
I would think you would want to use -pdmv, and the syntax would be:
find . -depth -print | cpio -pdmv newdisk

the p means passthrough, d means create directories as needed, m means retain mod time, and v is verbose.

HTH
Mo
No matter where you go, there you are.
6 REPLIES 6
Dan Hetzel
Honored Contributor

Re: ATTN: Bassey essien - cpio question

Hi Maureen,

I've got the same problem. I posted an answer, see Bassey's post come on top of the list with the right answer count but can't see my answer when clicking on the list, but I can see yours :-))

Best regards,

Dan
Everybody knows at least one thing worth sharing -- mailto:dan.hetzel@wildcroft.com
Dan Hetzel
Honored Contributor

Re: ATTN: Bassey essien - cpio question

Hi again,

As I originally french speaking, I don't fully understand your signature.
I guess that 'mo' must be a nickname not far from 'Maureen' but what does 'HTH' stand for ??

All the best

Dan
Everybody knows at least one thing worth sharing -- mailto:dan.hetzel@wildcroft.com
Paula J Frazer-Campbell
Honored Contributor

Re: ATTN: Bassey essien - cpio question

Hi Dan
HTH - Stands for "Hope This Helps"

;-)

Paula
If you can spell SysAdmin then you is one - anon
Dan Hetzel
Honored Contributor

Re: ATTN: Bassey essien - cpio question

Thanks Paula !

It's difficult to understand all abbreviations in a foreign language...

AV
Dan

PS: AV stands for 'amicalement votre', meaning 'yours friendly' in french ;-)
Everybody knows at least one thing worth sharing -- mailto:dan.hetzel@wildcroft.com
Maureen Gunkel
Trusted Contributor

Re: ATTN: Bassey essien - cpio question

Dan,

Mo is my nickname, I go by that more than Maureen.
No matter where you go, there you are.
Dan Hetzel
Honored Contributor

Re: ATTN: Bassey essien - cpio question

Thanks Mo!

Dan
Everybody knows at least one thing worth sharing -- mailto:dan.hetzel@wildcroft.com