Commit Graph

3 Commits

Author SHA1 Message Date
connorc@orbitnode.net
6b2941e3a1 Refactored code to use a new Loggman class for
logging and to handle all file naming, storing logs in the backup
directory by default. Made the Loggman class delete logs older than
2 months and create new log files each week. Refactored the
MysqlDatabaseConfig and MysqlDatabaseBackup classes to use the new
Loggman class for logging and added error handling code. Updated the
upload_to_b2 method in MysqlDatabaseBackup to properly handle errors
when listing and deleting old backups in the B2 bucket.
2023-03-19 17:10:48 -06:00
connorc@orbitnode.net
3342da13c6 feat: Enhance MySQL backup script with
customizable retention and logging

    Refactor backup method to dump each database individually
    Update delete_old_backups method to remove local backups based on user-defined retention days
    Add Loggman class for logging program actions to a logfile and implement log deletion for logs older than a week
    Modify MysqlDatabaseConfig class to ask the user for local and B2 backup retention days
    Update MysqlDatabaseBackup class to use user-defined retention days for local backups
    Refactor upload_to_b2 method to delete B2 backups based on user-defined retention days
    Implement various code improvements and refactoring for better readability and maintainability
2023-03-19 16:49:18 -06:00
VetheonGames
bcfd201c4b
Commit finished beta 2023-02-23 15:42:16 -07:00