There were some conflicts copying the images directory and css directory as those names have special meaning to confluence.
As a quick hack, I renamed these folders and updated references to them which seems to work ok.
#!/bin/sh
set -e
# rename images folder and fix references to it
/bin/find Publish/ -depth -type d -name images -exec rename -v 'images' 'imagesdir' {} \;
/bin/find ./Publish -type f -name "*.htm" -exec sed -i 's/images\//imagesdir\//g' '{}' +
/bin/find ./Publish -type f -name "*.html" -exec sed -i 's/images\//imagesdir\//g' '{}' +
# rename css folder and fix references to it
/bin/find Publish/ -depth -type d -name css -exec rename -v 'css' 'cssdir' {} \;
/bin/find ./Publish -type f -name "*.htm" -exec sed -i 's/css\//cssdir\//g' '{}' +
/bin/find ./Publish -type f -name "*.html" -exec sed -i 's/css\//cssdir\//g' '{}' +
cp -rvf Publish confluence_webdav_folder
[Updated on: Sun, 06 October 2013 08:05] by Moderator