DJA wrote:
Joshua Penix wrote:


On Jul 7, 2006, at 5:28 PM, DJA wrote:

Okay, I know this is a stupid newbie question I should know, but...
What's the best way to copy the contents of a directory, including hidden "." files?

I'd use rsync:

rsync -av src_dirname/ dest_dirname/

Preserves original date and time, ownership and permissions (assuming done as root).

I tried this, but got this error after a while:

rsync: writefd_unbuffered failed to write 4 bytes [sender]: Broken pipe (32) rsync: close failed on "/eighthome/dallen/Application Data/Spybot - Search & Destroy/Recovery/.Mozilla.zip.TI4SDn": Input/output error (5)
rsync error: error in file IO (code 11) at receiver.c(628) [receiver=2.6.8]
rsync: connection unexpectedly closed (14802 bytes received so far) [sender] rsync error: error in rsync protocol data stream (code 12) at io.c(463) [sender=2.6.8]

It looks like the problem occurs with large files. The file on which the above error occurred looks like this:

[EMAIL PROTECTED] Recovery]# ls -la Mozilla.zip
-rw-rw-r--  1 dallen dallen 31901436 Apr 16  2004 Mozilla.zip

The cp command also seemed to crap out on either very large files or on directories containing large (MB) amounts of data. Could this be a buffering problem?


--
   Best Regards,
      ~DJA.


--
[email protected]
http://www.kernel-panic.org/cgi-bin/mailman/listinfo/kplug-list

Reply via email to