I don't know much about Python :-) but I see cnopts=pysftp.CnOpts() in the
sftp.py script. This leads down the typical rabbit-hole of Google, grep,
etc. and I find the pysftp project cookbook and added
"cnopts.compression=True" in there. We'll see if it works - the cookbook
says that compression is off by default.

So far (one cycle) it looks about the same - no errors, and "26 files, 34
seconds" versus the last uploads of 21 files, 32 seconds. (Second cycle -
21 files, 30.9 seconds. Faster, but tiny...)

I may look into alternate providers, but I host this with Gandi (in
Luxembourg) for $5/mo for a pre-configured and running host. As long as
sftp works I'm happy to use it.

On Wed, Mar 9, 2022 at 2:55 AM [email protected] <
[email protected]> wrote:

> 1. SFTP can be used with compression (-C option) but I don't know if it is
> used or not in Weewx.
> 2. I tried to compress all my weewx images with tar and/or gzip.  At best
> I get less than 30 % reduction.  May be it is just enough for you.
> 3. gzip (or better the library behind it) is in fact used by ssh, sftp,
> tar etc. So in your case you should just be sure to use compressionwhatever
> the transfer protocol.
>
> When lines were very slow, the default was always WITH compression. Now,
> with much, much faster lines available, the default is NO compression, as
> compression would slow down the process...
>
> Regards,     PaulB
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/CAMwKJErL0TSsFEtxadKAcPdXBTbbShzAPbgzwdsD5_1wTn83PA%40mail.gmail.com.

Reply via email to