Karl Behler [EMAIL PROTECTED] wrote:
>> cd source_dir; find . -depth -print| cpio -pdm dest_dir
[text deleted]
Hi Paul,
I didn't forget that requirement. cpio checks the dates and copies only newer
files to the destination directory. So it's no problem to do the copy a second
time (when the first trial was interrupted) because it just copies the not
yet transferred files (ok, it generates a lot of messages in this case).
Hi Karl,
It is good that you pointed that out.
The only problem I have with cpio is that you first have to pipe the
list of filenames to it. Mostly this is OK but if you have a filename
with "funny" characters in it (" ", ";", "\n"!) then it may cause cpio
to "throw a wobbly" and not copy the file.
It is for this reason I normally first duplicate directories with:
cd $source; tar cf - . | (cd $target && tar -xvf -)
and then sync changes with "sdir".
Thanks!
--
paul http://acm.org/~mpb/homepage.html