Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RetainVersions lower for archive than for source directory causes pointless copy/delete #2

Closed
silentdiverchris opened this issue Aug 8, 2021 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@silentdiverchris
Copy link
Owner

silentdiverchris commented Aug 8, 2021

If the RetainVersions setting for a source directory is higher than for an associated archive directory, the system will repeatedly copy old versions of files over from source to archive and immediately delete them.

Not a problem in terms of data loss as it will only be deleting the older versions and ends up with the requested number of generations in both folders, but a waste of time and uses up SSD lifespan.

This is detected and generates a warning on startup but the system currently goes ahead and cheerfully copies and deletes old versions on each run.

Make it not do this.

@silentdiverchris silentdiverchris added the bug Something isn't working label Aug 8, 2021
@silentdiverchris silentdiverchris self-assigned this Aug 8, 2021
@silentdiverchris silentdiverchris changed the title RetainVersions lower for archive than for source directory RetainVersions lower for archive than for source directory causes pointless copy/delete Aug 8, 2021
@silentdiverchris
Copy link
Owner Author

Fixed in 1.0.4 and warnings removed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant