Commit Graph

7 Commits

Author SHA1 Message Date
CasVT
492674d280 Turned DatabaseBackupHandler methods into classmethods 2025-08-05 12:26:57 +02:00
CasVT
1e09ce1510 Copy over last DB backup timestamp on DB import
When importing a backup from a long time ago (more than one DB backup interval ago), a backup would be created the moment the import was done, regardless of when the previous backup was made (so even when that was minutes ago). Now the schedule is kept, by copying over the timestamp of the last DB backup from the current DB to the imported DB.
2025-08-03 12:20:49 +02:00
CasVT
40473de47a Changes made since startup were carried over on DB import
The changes made since startup, stored in the wal file, were carried over when importing a database. This was because the database file was replaced with the imported database file, but the changes were stored in the wal file. So now we merge all changes into the main database file before replacing them.
2025-08-02 18:54:28 +02:00
CasVT
ba2d89d4ce Moved backup command to DB connection 2025-08-02 18:03:32 +02:00
CasVT
783a5664d5 Refactored db_backup_import.py 2025-08-02 17:07:45 +02:00
CasVT
9a91955ff4 Added timezone change handling (#89) 2025-05-04 16:20:11 +02:00
CasVT
59ac864c16 Added DB backup system 2025-04-30 13:52:31 +02:00