Faça upload de todos os diretórios e arquivos no webdav

find * -type d | {
while read dir;
do curl -X MKCOL http://$USER:$PASSWORD@$LOCATION/$dir;
done
}

find
* -type f | {
while read file;
dir
=`dirname $file`
do curl -T $file http://$USER:$PASSWORD@$LOCATION/$dir/;
done
}