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

Feature: Ignore dup files with same relative path #645

Open
nadapez opened this issue Jan 13, 2024 · 0 comments
Open

Feature: Ignore dup files with same relative path #645

nadapez opened this issue Jan 13, 2024 · 0 comments

Comments

@nadapez
Copy link

nadapez commented Jan 13, 2024

While the primary purpose of rmlint is to identify duplicated files, I've realized its potential for detecting moved files between two mirrors. Synchronization tools like rsync lack an easy method to identify moved files efficiently, treating them as creations and deletions. This not only poses an efficiency issue but also makes it challenging to mirror file movements without using the --delete option in rsync. However, this option could unintentionally delete files in the target that don't exist in the source, which may not be the desired behavior. Rmlint could address this by introducing an option to ignore files with the same relative path. This could be implemented with a command like:

rmlint -km --ignore-same-path target \\ source

This command would detect only pairs of files with different relative paths, one in the source and one in the target. To complete the process, one would need to modify the removal command to move the target file to the corresponding path.

@nadapez nadapez changed the title Ignore dup files with same relative path Feature: Ignore dup files with same relative path Jan 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants