Skip to content

Show source tree size in backup stats#300

Open
kimjune01 wants to merge 2 commits into
sourcefrog:mainfrom
kimjune01:fix-115-show-source-tree-size
Open

Show source tree size in backup stats#300
kimjune01 wants to merge 2 commits into
sourcefrog:mainfrom
kimjune01:fix-115-show-source-tree-size

Conversation

@kimjune01
Copy link
Copy Markdown

Backup stats previously showed deduplication and compression metrics but omitted the source tree size, making it hard to understand what percentage of data was being saved. This adds four new metrics: total source bytes and breakdowns for unchanged, modified, and new files.

The size is read once per file and accumulates into the appropriate counter based on whether the file is new, modified, or unchanged. Test coverage confirms the stats track correctly across incremental backups.

Fixes #115.

kimjune01 added 2 commits May 11, 2026 09:50
Add test showing that BackupStats should track source tree sizes:
- Total source bytes across all files
- Bytes in new files
- Bytes in modified files
- Bytes in unchanged files

Test currently fails because these fields don't exist in BackupStats.
Track and display source file sizes broken down by:
- Total bytes across all source files
- Bytes in unchanged files
- Bytes in new files
- Bytes in modified files

Resolves sourcefrog#115
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Show source tree size in backup stats

1 participant