On Monday, February 13, 2017 at 4:27:01 PM UTC-8, Glenn McKechnie wrote: > 2. To use the -R function of rsync, which means the remote directory > structure may need to be in place first > 3. Add a dated directory structure for remote_root (HTML_ROOT) eg > 2017/02/14 which also means that it needs to be in place > > Rather than fight the directory issue you mention, I just put the datestamp in the filename ala weewx.sdb.YYYY_MM_DD.gz and store all the files in the same directory. That makes the rsync directory thing go away as a concern. Scripts are in https://github.com/vinceskahan/vds-weewx-backup-data if you want to take a look. They're pretty simple, but they get the job done.
Note that I gzip my archives in my script, dunno how you'd do that in a rsync scenario. At some point it's just simpler to write a quick bash script and a quick cron job. The rsync thing is pretty cool, I could see it being a perfect way to backup weewx databases on something like a system that could run Dropbox (not a pi, unfortunately)
