-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
feat: Backup current database, if package is upgraded #25118
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
feat: Backup current database, if package is upgraded #25118
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
|
Bin kein Code Experte und kann die Aufbewahrungsfrist bzw. das Vorhalten wie vieler Backup Versionen nicht erkennen. Wird ja wenn dann hoffentlich nur optional sein - ich benötige das aufgrund vorhandener Backups zumindest nicht. |
Guter Punkt, danke! Optional ist das nicht, da man darauf bei der Paketinstallation nicht wirklich Einfluss hat. Was schlägst Du vor, wieviele Versionen liegen bleiben sollten? Da man ja insbesondere im Problemfall durchaus etwas "herumspringen" kann, würde ich acht oder zehn Versionen liegen lassen. Meinungen? |
|
Nun ja, da müssen andere Meinungen kommen. |
|
Mein Das sieht so einheitlich aus, da Frage ich mich ob es ein tool oder Befehl in den Debian packaging tool chain gibt die sich darum kümmert. |
Das macht vermutlich |
|
FYI: The avg. db size will grow with upcoming versions when we start to introduce metrics (#23185). So I wouldn't recommend to keep many versions around. Especially on size-constrained devices. |
|
@starwarsfan FYI: |
|
Landen die Backups dann bei einer Home Assistant Installation in /addon_configs/49686a9f_evcc? |
Mit HA hat das nichts zu tun. Hier geht es um das (Debian-)Paket, welches via Paketmanager installiert wird. |
Understand. I'm thinking about some kind of configuration option to define the amount of backups to keep. But I have no idea at the moment, how to get that configured value during package removal. Any ideas? |
If package is upgraded, backup the current database to
by following the naming schema
So one would have automatically a db backup with every upgrade. Please let me know where to put this into the documentation!