function copy {

   SRC=$1
   DST=$2

   if [ ! -d $SRC ] ; then
      echo "Source directory $SRC does not exist...aborting"
      return
   fi

   if [ ! -d $DST ] ; then
      echo "Destination directory $DST does not exist...aborting"
      return
   fi

   echo "Copying the contents od $SRC into $DST ..."
   (cd $SRC && tar cf - .) | (cd $DST && tar xvfp -)
   echo "Copy done."

}