94afeb5d459e60c07f49199f31c0d947276f4879
This commit refactors the backup size calculation logic and fixes several bugs related to rsync argument passing and UI actions. - refactor(core): Centralized all incremental backup size calculation logic within the BackupManager class. This removes duplicated and buggy code from the DataProcessing class and ensures both post-backup reporting and pre-backup estimation use a single, robust implementation. - fix(backup): The pre-backup "accurate size calculation" now works correctly for all backup types. It uses an `rsync --dry-run` with a proper temporary directory and correctly handles root permissions for system backups. - fix(backup): The post-backup size reporting for incremental system backups is now accurate. It uses a root-privileged command to inspect file links and calculate the true disk usage, avoiding permission errors. - fix(backup): Corrected multiple quoting issues with rsync arguments (`--link-dest`, `--exclude-from`) that caused backups to fail or misbehave. - fix(ui): Fixed a TypeError that occurred when deleting a system backup from the "Backup Content" view. - feat(backup): Added the `-v` (verbose) flag to rsync for user backups to provide better feedback in the UI.
Py-Backup
Screenshots
Instruction
Languages
Python
97.8%
Shell
2.2%