basking-in-the-sun2000 / solar-logger

A datalogger for a solar inverter. Stores data in influxdb and displays it in grafana. Has load diverting capability, to use the inverter's excess power
GNU General Public License v3.0
99 stars 32 forks source link

Question: Backups #50

Closed verisgit closed 2 years ago

verisgit commented 2 years ago

Hi there, just wondering what files/folders need to be backed up if I want to create a second copy in case my Pi fails. I'd hate to lose my historical data.

Also are there any particular folders to check for max file size or out of limit issues long term?

basking-in-the-sun2000 commented 2 years ago

most is stored in influxdb. You would need to backup your db

verisgit commented 2 years ago

Where's that located based on the install steps?

Is it just /var/lib/data that I would need to backup or the meta and other folders also?

basking-in-the-sun2000 commented 2 years ago

you shouldn't need to backup the folders. Dbs have a mechanism to backup the data

https://docs.influxdata.com/influxdb/v1.8/administration/backup_and_restore/

verisgit commented 2 years ago

Ah yes, I've setup a cron to do that. Thanks