I have my own .sdb back up service which looks like this below. It runs once a day but you can schedule it any way you wish and since the R-Pi's connection is a 3G modem that runs mostly on GPRS speeds it helps compressing the file first and running it independently:
[Unit] Description=wxdb [Service] Type=oneshot ExecStart=/usr/bin/bash -c 'cp /home/weewx/archive/weewx.sdb /home/weewx/archive/dbkp/wxbkp.sdb.$(date +"%F")' ExecStart=/usr/bin/bash -c 'tar -czf /home/weewx/archive/dbkp/wxbkp.$(date +"%F").tar.gz /home/weewx/archive/dbkp/wxbkp.sdb.$(date +"%F")' ExecStart=/usr/bin/bash -c 'rsync /home/weewx/archive/dbkp/wxbkp.$(date +"%F").tar.gz -e ssh [email protected]:/home/db' ExecStart=/usr/bin/bash -c 'rm /home/weewx/archive/dbkp/wxbkp.sdb.$(date +"%F") /home/weewx/archive/dbkp/wxbkp.$(date +"%F").tar.gz' -- 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/4ad52828-3301-48bb-82b3-908d07b17b3f%40googlegroups.com.
