#]
#] *********************
#] "$d_SysMaint"'webSite/1_website bash upload instructions.txt' -
#] bash-related webSite instructions
# www.BillHowell.ca 05Jul2022 initial
# view in text editor, using constant-width font (eg courier), tabWidth = 3
bash-related!! :
"$d_SysMaint"'webSite/0_website bash notes.txt' - bash-related webSite maintenance & tracking
"$d_SysMaint"'webSite/1_website bash upload instructions.txt' - bash-related webSite instructions
"$d_SysMaint"'internet & wifi/lftp notes.txt'
"$d_PROJECTS""bin - secure/lftp update www-BillHowell-ca.sh" - main tool for webSite updates (not FileZilla)
QNial-related :
"$d_Qndfs"'webSite/0_webSite QNial notes.txt' - QNial webSite notes for maintenance & tracking
"$d_Qndfs""webSite/1_webSite QNial process instructions.txt" - fixes for webSite link problems
bash programming related
"$d_bin"'0_test/fileops/0_fileops test notes.txt'
"$d_bin"'fileops notes.txt'
"$d_web"'Neural nets/TrNNs_ART/0_TrNNs_ART notes.txt'
"$d_PROJECTS"'bin - secure/dWebAll_upload_online log.txt'
"$d_PROJECTS"'bin - secure/dWebPage_upload_online log.txt'
"$d_bin"'webSite update [old ToDo, templt, geany regexpr]s.txt'
"$d_bin"'webSite maintenance specific files.link.txt'
"$d_bin"'webSite update notes.txt'
"$d_SysMaint"'webSite/0_website bash notes.txt'
#48************************************************48
#24************************24
# Table of Contents, generate with :
# $ grep "^#]" "$d_SysMaint"'webSite/0_website instructions.txt' | sed "s/^#\]/ /"
#
#24************************24
# Setup, ToDos,
#24************************24
#] +-----+
#] Handy geany regxpr search-replace commands while working
#] create "$d_webWork"'pStrPAll_L change.txt' from "$d_webWork"'pLnkBad.txt'
backup-dated current 'pStrPAll_L change.txt'
create new 'pStrPAll_L change.txt' : "$d_webWork"'pStrPAll_L change.txt'
copy-paste 'pLnkBad.txt' into pStrPAll_L,
quote double-expressions :
find-only : (.*) replace : "\1"\t"\1"
no quotes : (.*) replace : \1\t\1
late quote : (.*)\t(.*) replace : "\1"\t"\2"
oops exmpl : \"(.*)\t(.*)\"\t\"\" replace : "\1"\t"\2"
separate into [pth, bookmarks (later), dir, regexpr] changes
quotes around pths (links) only (11Oct2023 for now)
manually edit (search files for link to be sure)
#] check "$d_webWork"'pStrPAll_L change.txt' for non-tabbed lines
$ sed s'|\x9|xyZyx|' "$d_webWork"'pStrPAll_L change.txt' | grep --invert-match 'xyZyx'
#] [add, replace]*[class] for "home" :
search : (.*)\/web\/([A-Za-z0-9_,() ]*\.html\t.*
replace : \1/web/\2.html\thome
#] bookmarks search-replace
bookmarks search replace
initial <\/a> \1
or later .*<\/a> \1
or later .*
<\/a>
\n\1
#] fix TblOfContents :
(.*)
<\/a> \n\t
\2
nuts - was it permissions? (must be exeecutable)
<\/a>\n\t (.*)
\2
<\/a>
#] MenuTop geany regexpr search-replace :
search : \n\t\t\t\t (.*)<\/a>
replace : \2
#] add p_log to each fileops.sh function except those that iterate many times :
search \t(.*)\n^{
replace \t\1\n{\n\tdate_ymdhms=$(date +"%0y%0m%0d %0kh%0Mm%0Ss")\n\techo >>"$p_log" "$date_ymdhms \1"\n
+-----+
#] update [*.htm, menu] files in WebRaw
#] html files transform from ("$d_webRawe" -> "$d_webSite") with :
#] "$d_Qndfs"'webSite/webSite maintain [menu, header, footer, body] links, TableOfContents.ndf'
#] non-html files - rsync ("$d_webRawe" -> "$d_webSite") with :
#]
rsync WebRaw -> Web but xHTML exclusions (doesn't update html files)
+-----+
#] lftp for whole-[webSite, ssh] work [mass uploads, deletion of files not on d_webSite, etc]
much slower, hopefully more reliable?
bottom of file select :
# Take your pick :
ls_remote
#] $ bash "$d_PROJECTS""bin - secure/lftp update www-BillHowell-ca.sh"
#] check & cleanup "...WebSite file deletes.txt"
#] WATCH OUT! 05Jul2022 DANGER! delete listing had : rm "/billhowell.ca"
# check for directories without trailing `/ in :
"$d_webRawe"'webWork files/z_Archive/'"$date_ymdhm"' WebSite directory raw deletes.txt'
>> many of results are *.[sh, txt~, xlsx] but most are good
#] one-by-one, go through 'WebSite directory raw deletes' to remove [file, dir]s that :
#] 1. should be moved within webSiteOnLn to save transmission time and see what is going on
#] 2. should be permanently deleted
???????? check dates on Charvatova files - always being uploaded multiple times!!!
>> isn't working well, script problems?
09Dec2020 WARNING! did my lftp settings pass permissions to the website,
denying access to the public for many directories?
vsftpd - very fast, use this? (secure - don't need for my website, though)
05Jul2022 : DON'T use FileZilla for massive stuff!!!! - reloads most of webSite every time!!!!
just use it for very limited transfers - manually-sellected, small directories etc
+-----+
#] FileZilla for small number of manually-selected files ("$d_webSite" -> http://www.BillHowell.ca)
a) FileZilla check file transfer settings!! - see details next sub-section below
6. Add : Sarah, Catherine links
Make sure that upload transfer settings are correct!!!
Menu -> View -> Directory listing filters -> check ONLY "Temporary & backup files" for local filters
-> Edit filter rules -> "Temporary & backup files" :
Filename ends with : [~, .bak.]
Filename contains : [References, z_Archive, z_Old, z_References]
UN-check : Conditions are case sensitive,
check : Filter applies to : Files, Directories
Click OK to retain changes
Remove remaining transfer queue :
Menu -> Edit -> Clear private data -> check Clear transfer queue box
click in transfer [queued files, failed transfers, successful transfers] windows
and [clear, delete] lists after all done
Re-instate transfer only newer files :
Menu -> Edit -> settings -> Transfers -> File exists action :
Downloads -> Overwrite file if source file newer
Uploads -> Overwrite file if source file newer
# $ bash "$d_SysMaint"'webSite/0_website instructions.txt'
# enddoc