Hello,
As default, the url for the database is located in the config dir.
I do not find how the change this location to, for example, : backup/database
This is just to keep the config dir not too big for the snapshots.
Can an expert in db help me ? and show me an example of url pointing to a directory still on the sd card.
By the way is there already a solution for user of hassio to put the database to an external disk via the USB 3 ?
Ppatou
Simple as this :
recorder:
db_url: sqlite:////share/hassio_db/home-assistant_v2.db
purge_keep_days: 3
Hello Francis,
Thanks for the quick answer.
It is indeed simple : I have created the directory hassio_db
in share
and transfer the current database file to this path so I could keep the history of the last days
Thanks again
Ppatou
1 Like
Please mark francis’ post as the solution.
done !! will do next time also