Also you can try this:

Here's another method for copying a directory tree from directory "sub1" on
one disk to a new
directory called "sub2" on another disk whilst preserving the links:
1. Make directory "sub2" in the new area eg /thingy:
                cd /thingy
                mkdir sub2
   If this is not your directory you need to be root and set it to whoever's
   it is:
                chown whoever sub2
2. Go into the source directory eg:
                cd /home/sub1
3. Start the copy going (as root):
                find . -depth -print | cpio -pdmv /thingy/sub2
   This preserves the creation date and the links. Works across NFS, too.
   You may need to alter the permissions of sub2 (the directory itself)
afterwards.
4. If you wish, have a look at the final product:
                cd /thingy
                ls Rla sub2 | less


___________________________________________
Jill Rowling
Senior Design Engineer & Unix System Administrator
Electronic Engineering Department, Aristocrat Leisure Industries
3rd Floor, 77 Dunning Ave Rosebery NSW 2018
Phone:  (02) 9697-4484          Fax:    (02) 9663-1412
Email:  [EMAIL PROTECTED]


--
SLUG - Sydney Linux Users Group Mailing List - http://www.slug.org.au
To unsubscribe send email to [EMAIL PROTECTED] with
unsubscribe in the text

Reply via email to