Re: Copying a whole subdirectory possible?

2002-01-20 Thread Nathan E Norman
On Sat, Jan 19, 2002 at 07:01:27PM -0600, Manoj Srivastava wrote: Hi, The short answer is: # cd /path/to/old/directory # find . -depth -print0 | afio -p -xv -0a /mount/point/of/new/directory [ snip ] afio: Afio is a better way of dealing with cpio-format archives. It is

Re: Copying a whole subdirectory possible?

2002-01-19 Thread Steve Cooper
On Fri, Jan 11, 2002 at 05:52:55PM -0800, Tim locke decreed: I need to copy a whole subdirectory to another subdirectory...possible? (i.e. cp /home/user1/file /home/user2/file) as a regular user. ---end quoted text--- For the most accurate reproduction of a directory tree consider using the

Re: Copying a whole subdirectory possible?

2002-01-19 Thread David Raeker-Jordan
Steve Cooper wrote: For the most accurate reproduction of a directory tree consider using the tar command: tar cf - . | (cd $1; tar xvf -) I always thought that: tar cf - . | (cd $1; tar xpvf -) was the correct way. The one time I forgot the -p during extraction, I had permission

Re: Copying a whole subdirectory possible?

2002-01-19 Thread Manoj Srivastava
Hi, The short answer is: # cd /path/to/old/directory # find . -depth -print0 | afio -p -xv -0a /mount/point/of/new/directory Now for the long answer. The candidates are: cp: Traditionally, cp was not really a candidate since it did not derenference symbolic

Re: Copying a whole subdirectory possible?

2002-01-19 Thread Alan Chandler
On Sunday 20 January 2002 1:01 am, Manoj Srivastava wrote: Hi, The short answer is: # cd /path/to/old/directory # find . -depth -print0 | afio -p -xv -0a /mount/point/of/new/directory Now for the long answer. The candidates are: What about rsync -- Alan - [EMAIL

Copying a whole subdirectory possible?

2002-01-11 Thread Tim locke
I need to copy a whole subdirectory to another subdirectory...possible? (i.e. cp /home/user1/file /home/user2/file) as a regular user. __ Do You Yahoo!? Send FREE video emails in Yahoo! Mail! http://promo.yahoo.com/videomail/

Re: Copying a whole subdirectory possible?

2002-01-11 Thread Viktor Rosenfeld
Tim locke wrote: I need to copy a whole subdirectory to another subdirectory...possible? (i.e. cp /home/user1/file /home/user2/file) as a regular user. How about cp -r? Or better yet: cp -a. Cheers, Viktor -- Viktor Rosenfeld WWW: http://www.informatik.hu-berlin.de/~rosenfel/

Re: Copying a whole subdirectory possible?

2002-01-11 Thread DvB
Tim locke [EMAIL PROTECTED] writes: I need to copy a whole subdirectory to another subdirectory...possible? (i.e. cp /home/user1/file /home/user2/file) as a regular user. ^ If you're getting access denied errors, you probably don't have write permission to

Re: Copying a whole subdirectory possible?

2002-01-11 Thread Tim locke
not access denied errors. I need to copy a subdirectory located in a public directory to my home directory...I can copy the files one by one but I'd rather copy the whole subdirectory itself to my home directory... __ Do You Yahoo!? Send FREE video

Re: Copying a whole subdirectory possible?

2002-01-11 Thread Ron Golan
On Fri, Jan 11, 2002 at 07:35:11PM -0800, Tim locke wrote: not access denied errors. I need to copy a subdirectory located in a public directory to my home directory...I can copy the files one by one but I'd rather copy the whole subdirectory itself to my home directory... Have you tried 'cp

Re: Copying a whole subdirectory possible?

2002-01-11 Thread Carl Fink
Have you tried cp -r path/dirname newpath ? -- Carl Fink [EMAIL PROTECTED] I-Con's Science and Technology Programming http://www.iconsf.org/