Skip to content

detect filechanges#92

Merged
thmarx merged 2 commits intoCondationCMS:mainfrom
thmarx:main
Nov 30, 2025
Merged

detect filechanges#92
thmarx merged 2 commits intoCondationCMS:mainfrom
thmarx:main

Conversation

@thmarx
Copy link
Copy Markdown
Contributor

@thmarx thmarx commented Nov 30, 2025

No description provided.

google-labs-jules Bot and others added 2 commits November 30, 2025 11:23
Introduces a new configurable option, `processOnlyOnChange`, to the backup module.

When this option is enabled for a backup job, a SHA-256 checksum of the backup archive is calculated and compared to the checksum of the previous backup.

The post-processing steps (e.g., uploading to S3) are now only executed if the checksums differ, indicating that the backup's content has changed.

If the backup has not changed, the newly created archive is deleted to save disk space.

This optimization avoids unnecessary processing and storage of redundant backups.

The checksum calculation is implemented using a streaming approach to handle large files without causing OutOfMemoryError. The checksum file is written atomically to prevent corruption.

Unit tests have been added to verify the new functionality.
feat(backup): Process backups only when content changes
@thmarx thmarx merged commit 6ddd63c into CondationCMS:main Nov 30, 2025
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.

1 participant