@vinceskahan @davidefa
..getting to be quite an adventure!
Finally found out from the webhost that MQTT is strictly verboten. Nope - not gonna open ports on a shared server..they said. But if you only pay 3x more we should be able to accomodate...
passwordless SSH took a while to set up. Gave up. Had to contact support and found out the port is not 22. That helps
Note to self: contact support before you spend hours/days on trying out all sorts of things.
Decided to test rsync on the command line first, but it fails: can not find file or directory plus IO error.. Tried single quotes or double quotes for ssh -p 1234 ... both fail.
Note: remote target path is /public_html/some_folder/belchertown is pre-existing..why mkdir?
$ rsync -avz -e "ssh -p 1234" /home/user/test/ remote_user@mydomain.ca:/public_html/some_folder/belchertown/
sending incremental file list
rsync: mkdir "/public_html/some_folder/belchertown" failed: No such file or directory (2)
rsync error: error in file IO (code 11) at main.c(657) [Receiver=3.1.2]
---
OK. Tech support solved it. There was error in the path to the remote server. ..had to remove the "/" before public_html
the correct command is:
$ rsync -avz -e "ssh -p 1234" /home/user/test/ remote_user@mydomain.ca:public_html/some_folder/belchertown/...will rsync /var/www/html/weewx/belchertown. I guess I will have to change the HTML_ROOT in weewx.conf (rsync section) to match.
the adventure continues...