-{ a hewer of maps }-

Deploy website with rsync

Recipe for copying my Acrylamid-generated static html website to my webhost (nearlyfreespeech.net).

In a nutshell, I use QtdSync to generate the basic rsync update script, and then add rsync advanced options as make sense to me. From QtdSync's progress screen the rsync command line can be copied and pasted to create a batch file (strip the -e ... sshpass... line for interactive password prompting).

QtdSync is a bit twitchy around the "backup/don't backup into subfolder" options. Sometimes they appear to have the opposite effect of what they say. I still found it much easier than trying to construct the appropriate rsync script continue.

Going Acrylic

Recipe used for converting httrack snapshot of Mindtouch wiki to markdown for acrylamid

Generate the processing list

dir /s/b \www\maphew.com\*.html > process-list.xt

Edit process-list and remove junk, fix bad filenames (resultant from double quotes in name).

Copy to excel and:

Scripted Html to Markdown to Acrylamid

for /f %a in (process-list-cleaned.txt) do @mkdir .%~pa

for /f %a in (process-list-cleaned.txt) do ^
    @pandoc --to markdown --standalone --template acrylamid-pandoc-template.txt "%a" -o ".\%~pa\%~na.md"

acrylamid init converted
rd /s/q converted\content
move www\maphew.com converted
pushd converted
rename 
continue.