Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

NFS and cpio

Status
Not open for further replies.

mikeboz

MIS
May 18, 2000
41
US
I want to use and NFS mount to:

cd /nfs_mounted_dir
find . -depth -print | cpio -pdm /local_mounted_directory

I am getting all kinds of permisions errors. mostly w/ the hidden '.' files but also w/ other files and directories.

I am root, the mount is rw, the local_mounted_directory is 777, the /nfs_mounted_dir has 755 and the sub dirs are of mixed perm and owners.

Is there a way to cpio without these permission errors. It is important that I restore these directories 'as they were'. I am doing all this to decrease partition size/ repartion a Sun box.

Thanks,
Mikeb
 
that could be tar parsing subdirectories automagiacally, not cpio getting list from find

your find can be limited to all but files using -type f at the end o its command line
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top