Ability to create a local backup

Feature description
Hello,

There is currently automatic backup via Gladys Plus but it could be useful to be able to manage your home automation setup without Gladys Plus, which should remain optional (even though I understand that it’s THE source of Gladys’s revenue), otherwise Gladys would no longer be a free solution.

I think a local backup feature would be interesting.

A place where you can save or import a backup.

When I started with Gladys, I asked myself the same questions. It was in this discussion: Solutions de sauvegarde / Backup Raspberri Pi

And then afterwards, I chose the comfort of Gladys Plus :wink:

1 Like

Hi @McFlyPartages :slight_smile:

As such it’s already very easy to make a manual backup — in Gladys everything is stored in a SQLite database (so a single file)

On disk it’s available at:

/var/lib/gladysassistant/gladys-production.db

(The path may change depending on the Docker volume you set at creation)

You can easily make a script that stops Gladys:

docker stop gladys

Then make a backup of the DB with a tool like rclone

Then restart Gladys:

docker restart gladys

Also, I agree that a button in the interface « Download the database » could be handy — depends if there’s demand for that :slight_smile:

3 Likes

[quote=« pierre-gilles, post:3, topic:8840 »]
As such it’s already very easy

1 Like