1834167 Members
2226 Online
110064 Solutions
New Discussion

Data migration

 
ASO CENTRAL
Advisor

Data migration

I need to move files from a logical volume to a new disk drive we will be installing. I have done this in the past using cpio but don't have the command anymore. Any assistance would be helpful.
3 REPLIES 3
James R. Ferguson
Acclaimed Contributor

Re: Data migration

Hi:

# cd srcdir && find . -depth -print | cpio -pudlmv dstdir

You can also use 'pax' :

# cd srcdir && pax -w . | ( cd dstdir && pax -r -pe )

Regards!

...JRF...
Jayakrishnan G Naik
Trusted Contributor

Re: Data migration

Hi

Once I used normal cp command also to do the same.

cp -pr * /target

-p preserve permissions
-r recursive subtree copy

Regards
Jayakrishnan G Naik
rmueller58
Valued Contributor

Re: Data migration

Just did this.

make sure both new and old mounts are there.

cd to OLD

cd /oldfs
find . -print |cpio -pcxvdm /newfs


then umount oldfs and newfs

modify /etc/fstab to reflect correct mount point

mount newfs