Faster then cp ?

Hi ,
I need to copy every day about 35GB of files from one file system to another.
Im using the cp command and its toke me about 25 min.
I also tried to use dd command but its toke much more.
Is there better option ?
Regards.


cd <source_dir>
find . -depth | cpio -pmdu <destination_dir>

Why don't you just create a soft link? That way you don't have to copy anything.

One other thing to think about is if the files are not changing that much you may want to use rsync, which will copy only the changed files.

^^ or rdist if it's not possible to install freeware for policy/licensing reasons.

What are the files like? If there's many of them, rsync might be a bit expensive. It performs a stat() of each file on both ends... If it's a relatively small number of large files, rsync may be a good idea.

What exactly are you trying to accomplish? What was the command-line you used for dd (depending on blocksize, dd can either be real fast, or real slow.) Can you describe your workload?

Hi,
Thank you all.
The files im copying are oracle data files.
Im coping them in process which is known as "transportable tablespace".
Copying parts of the files or only some the files are not an option.

The source that im using is:

while read sourcefile destfile
do
cp $sourcefile $destfile
if [ $? = 0 ] ; then
echo " STEP 17 : $destfile copied successfully from $sourcefile"
else
echo " STEP 17 : $sourcefile didnt copied to $destfile"
exit 17
fi
done < $CopyFilesList

Thanks