i use ‘cp’. heck, i use ‘scp’…
i just make sure i work in the window from 2 mins after archive interval (long 
after my archive updates are completed) to a few secs before next archive 
interval.
could make BACKUP a new built-in report like FTP and RSYNC - unless want to 
make backup independent of weewx (e.g. scenario where restore is required 
because weewx is screwed up and stuffs up reports)

> On 12 Jan 2021, at 12:25 pm, Tom Keffer <[email protected]> wrote:
> 
> I actually think 'cp' is pretty safe. When WeeWX writes a record to the 
> database, it has to update the main archive, as well as many daily summaries. 
> To make sure this is all done atomicallly, it does it as one big transaction.
> 
> So, unless your 'cp' has the unfortunate timing of happening at the exact 
> moment when the transaction is being committed, you should be fine. I don't 
> know how big a time window that is. Maybe a couple hundred milliseconds?
> 

-- 
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/6045AACC-4BB1-4B6C-97A8-65F02F1DA0B0%40gmail.com.

Reply via email to