Thanks for the hints Vince. I ended up looking through the old Wiki and 
came upon this page about backing up databases with the rsync report and 
how you can spit rsync into multiple skins.

https://github.com/weewx/weewx/wiki/Using-the-RSYNC-skin-as-a-backup-solution

My use case is that I'm using divumWX/weather34 which has its own builtin 
rsync so there seems to be some conflict between the two as divumWX is a 
subdirectory of the main htmlroot.

Like you said, it does not appear that there is any way to add options to 
the builtin weewx rsync.py file or any extra options in the skin or 
weewx.conf. So the alternative is to narrow what weewx is uploading by 
pointing it to subdirectories rather than updating the entire public_html 
directory and in that way excluding the directory I don't want weewx to 
deal with.

I might add a feature request to the GitHub to add options like you 
suggested.
Thanks!
Chris
On Thursday, March 21, 2024 at 11:15:03 AM UTC-7 vince wrote:

> Check out the options in https://ss64.com/bash/rsync_options.htm 
> <https://ss64.com/bash/rsync_options.html>l and see if you can make 
> vanilla rsync from the shell do (or not do) what you want.  If that doesn't 
> solve it, I'd doubt weewx can help much there as a wrapper over rsync.   
> The -u option might be what you're looking for possibly.
>
> But the rsync uploader (rsyncupload.py) doesn't seem to have the ability 
> to provide additional flags to the underlying rsync command.  I'm sure Tom 
> would appreciate a PR to add more functionality if you can figure out an 
> incantation works and some more general purpose thing to add to weewx 
> (possibly something like a rsync_options = "whatever" thing?).
>
> That said - if you're trying to use weewx as the source of the 
> authoritative file to upload something, why would you externally mess with 
> the file(s) on the far side after that ?  I'm sure there's some use case 
> you have but I can't think of a reason why it would be necessary....
>
> On Thursday, March 21, 2024 at 9:34:27 AM UTC-7 Chris Alemany wrote:
>
>> And just to be complete, this is on weewx 5.0.2, pip install on Debian.
>>
>> On Thursday, March 21, 2024 at 9:19:55 AM UTC-7 Chris Alemany wrote:
>>
>>> Good morning all, 
>>>
>>> I’m having some trouble with the weewx RSync report overwriting files 
>>> that have changed on the remote side independent of weewx. Are there any 
>>> provisions in the RSync report to exclude a list of files and/or folders 
>>> (including in skins) or otherwise change the way the process operates so 
>>> that files that exist on both ends but with a newer timestamp on the remote 
>>> side don’t get overwritten by the older local file? 
>>> Thanks very much 
>>>
>>> Chris 
>>> https://alberniweather.ca 
>>>
>>>

-- 
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 weewx-user+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/d7d4cf73-3729-4793-91de-780b334fa6cdn%40googlegroups.com.

Reply via email to